/* HS Concept Unternehmensgruppe — PDF-inspired institutional layout (soft surfaces, calm) */
/* Design tokens */
:root{
  /* Hero background opacity (auto by breakpoint) */
  --hero-bg-opacity: 0.28;

  --bg:#F6F6F4;
  --surface:#FFFFFF;
  --text:#0E1A2B;           /* deep navy */
  --text2:#44505E;
  --muted:#6A6A6A;
  --accent:#0A8E8E;         /* teal */
  --border: rgba(14,26,43,0.14);
  --shadow: 0 18px 46px rgba(14,26,43,0.10);
  --radius: 14px;

  --container:1280px;
  --gutter-m:24px;
  --gutter-d:40px;
  --gap:28px;
}


/* Hero background opacity by viewport */
@media (min-width: 700px){
  :root{ --hero-bg-opacity: 0.34; }
}
@media (min-width: 1100px){
  :root{ --hero-bg-opacity: 0.38; }
}


/* Local font (optional). If WOFF2 files are not present, fallbacks apply. */
@font-face{
  font-family:"InterLocal";
  src: url("./assets/fonts/Inter-regular.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"InterLocal";
  src: url("./assets/fonts/Inter-medium.woff2") format("woff2");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: InterLocal, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:400;
  line-height:1.65;
  font-size:18px;
  text-rendering:optimizeLegibility;
}

img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:focus{outline:2px solid var(--accent); outline-offset:3px}

/* Better focus for keyboard users (avoid always-on outlines for mouse) */
@supports selector(:focus-visible){
  a:focus{outline:none}
  a:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
  button:focus{outline:none}
  button:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--gutter-m);
}
@media (min-width: 900px){
  .container{padding:0 var(--gutter-d)}
}

.section{ padding:64px 0; }
@media (min-width: 700px){ .section{padding:88px 0} }
@media (min-width: 1100px){ .section{padding:120px 0} }

.prose{max-width:720px}
.small{font-size:14px; line-height:1.55; color:var(--muted)}
.muted{color:var(--muted)}
.kicker{
  font-size:14px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 12px 0;
  font-weight:500;
}

h1,h2,h3{margin:0 0 18px 0; font-weight:500}
h1{font-size:44px; line-height:1.06; letter-spacing:-0.02em}
h2{font-size:34px; line-height:1.15; letter-spacing:-0.01em}
h3{font-size:22px; line-height:1.25}
@media (min-width: 900px){
  h1{font-size:64px}
  h2{font-size:44px}
  h3{font-size:28px}
}
p{margin:0 0 16px 0}
ul{margin:0; padding-left:0; list-style:none}
li{margin:10px 0}

/* subtle divider */
.hr{ height:1px; background:var(--border); width:100%; }

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  height:72px;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
@media (min-width: 900px){ .header{height:80px} }
.header-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 220px;
}
.brand img{width:84px; height:44px}
.brand .name{
  font-weight:500;
  font-size:18px; line-height:1.2;
}
.brand .sub{
  display:block;
  font-size:14px;
  color:var(--muted);
  font-weight:400;
  margin-top:2px;
}
.nav{display:none; align-items:center; gap:22px;}
.nav a{padding:10px 2px;}
.nav a:hover{color:var(--accent); text-decoration:underline; text-underline-offset:6px;}

/* Desktop dropdown (Gesellschaften) */
.nav .nav-item.dropdown{position:relative; display:flex; align-items:center;}
.nav .nav-item.dropdown > .nav-link{padding:10px 2px;}
.nav .dropdown-menu{
  display:none;
  position:absolute;
  top:100%;
  left:-10px;
  margin-top:0px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  box-shadow:var(--shadow);
  min-width:280px;
  z-index:30;
}
.nav .dropdown-menu a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
}
.nav .dropdown-menu a:hover{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:6px;
}
.nav .nav-item.dropdown:hover .dropdown-menu,
.nav .nav-item.dropdown:focus-within .dropdown-menu{display:block;}

/* Mobile overlay sublinks */
.overlay nav a.sublink{
  padding-left:26px;
  font-size:0.98em;
}
@media (min-width: 900px){ .nav{display:flex} }

.burger, .close{
  border:1px solid var(--border);
  background:transparent;
  padding:10px 12px;
  font: inherit;
  cursor:pointer;
  border-radius:10px;
}

button{color:inherit}
.burger:hover, .close:hover{border-color:var(--accent); color:var(--accent)}
@media (min-width: 900px){ .burger{display:none} }

/* Mobile menu */
.overlay{
  position:fixed; inset:0; z-index:60;
  background:var(--bg);
  display:none;
}
.overlay.open{display:block}
.overlay .inner{height:100%; display:flex; flex-direction:column; padding:24px;}
.overlay .top{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
  border-bottom:1px solid var(--border);
}
.overlay nav{display:flex; flex-direction:column; padding-top:24px; gap:10px;}
.overlay nav a{padding:14px 8px; border-bottom:1px solid var(--border);}
.overlay nav a:hover{color:var(--accent); text-decoration:underline; text-underline-offset:6px;}

/* Prevent background scrolling while menu is open */
body.menu-open{overflow:hidden}

/* Layout grid */
.grid{display:grid; gap:var(--gap);}
.cols-2, .cols-3, .cols-4{grid-template-columns:1fr;}
@media (min-width: 900px){ .cols-2{grid-template-columns: 1.1fr 1.1fr;} }
@media (min-width: 700px){
  .cols-3{grid-template-columns:1fr 1fr;}
  .cols-4{grid-template-columns:1fr 1fr;}
}
@media (min-width: 1100px){
  .cols-3{grid-template-columns:1fr 1fr 1fr;}
  .cols-4{grid-template-columns:1fr 1fr 1fr 1fr;}
}

/* Surfaces */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  box-shadow: 0 1px 0 rgba(14,26,43,0.02);
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 220px;
}
.card.soft{ box-shadow: var(--shadow); border-color: rgba(14,26,43,0.10); }
.card h3{margin:0}
.card .role{font-weight:500; color:var(--text2)}
.more{margin-top:auto; align-self:flex-start; padding-top:6px;}
.more:hover{color:var(--accent); text-decoration:underline; text-underline-offset:6px;}

.icon{
  width:22px; height:22px;
  color:var(--accent);
}
.icon-wrap{
  width:38px; height:38px;
  display:inline-flex;
  align-items:center; justify-content:center;
  border-radius:12px;
  background: rgba(10,142,142,0.08);
  border:1px solid rgba(10,142,142,0.16);
  margin-bottom:8px;
}

/* Hero */
.hero{ min-height:calc(100vh - 72px); display:flex; align-items:center; }
@media (min-width: 900px){ .hero{min-height:calc(100vh - 80px);} }
.hero .subline{font-weight:500; color:var(--text2)}
.hero .micro{margin-top:14px}
.hero-visual{
  /* Make the platform stack more prominent on desktop while staying responsive */
  max-width: 880px;
  margin-left:auto;
}
@media (min-width: 1100px){
  .hero-visual{ max-width: 780px; }
}
.panel{
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 10px;
}


/* Mobile hero optimizations */
@media (max-width: 699px){
  .hero{ min-height:auto; }
  .hero.section{ padding:40px 0 56px; }
  .hero h1{
    font-size:38px;
    line-height:1.08;
    overflow-wrap:anywhere;
    word-break:break-word;
    hyphens:auto;
  }
  .hero-visual{
    margin-left:0;
    width:100%;
    max-width:520px;
    justify-self:center;
    margin-right:auto;
    margin-top:18px;
  }
  .panel{ padding:0; }
}

/* Check list */
.checklist li{
  display:grid;
  grid-template-columns: 22px 1fr;
  gap:14px;
  align-items:start;
}
.check{
  width:20px; height:20px;
  margin-top:3px;
}
.check path{stroke:var(--accent);}

.list-title{font-weight:500; margin-bottom:4px}
.list-desc{color:var(--muted); margin:0}

/* Footer */
.footer{
  padding:64px 0;
  border-top:1px solid var(--border);
}
.footer-grid{
  display:grid;
  gap:28px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .footer-grid{grid-template-columns: 1.2fr 0.8fr 0.8fr;}
}
.footer h4{
  margin:0 0 12px 0;
  font-size:14px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:500;
}
.footer a:hover{color:var(--accent); text-decoration:underline; text-underline-offset:6px;}
.footer-bottom{
  margin-top:40px;
  padding-top:22px;
  border-top:1px solid var(--border);
  display:flex;
  flex-wrap:wrap;
  gap:14px 18px;
  justify-content:space-between;
  color:var(--muted);
  font-size:14px;
}

/* Platform stack diagram */
.stack{
  width:100%;
  height:auto;
  display:block;
}
.stack a:hover .layer-rect{filter: brightness(1.02);}
.stack .layer-label{font-weight:500; fill:#fff;}
.stack .layer-sub{font-weight:400; fill:rgba(255,255,255,0.85); font-size:14px;}
.stack .hit{cursor:pointer;}
.stack .hit:hover rect{stroke: rgba(255,255,255,0.65);}


.stack .layer-rect{stroke: rgba(255,255,255,0.0); stroke-width:2;}
/* A11y helpers */
.skip{
  position:absolute; left:-999px; top:0;
  background:var(--bg);
  border:1px solid var(--border);
  padding:8px 10px;
}
.skip:focus{left:12px; top:12px; z-index:1000}

/* HERO background (no parallax) + subtle depth layering */
.hero-bg{
  position:relative;
  overflow:hidden;
  background: var(--bg);
}
.hero-bg-media{
  position:absolute;
  inset:0;
  z-index:0;
  opacity: 0.92; /* make sure background is visible */
}
.hero-bg-media picture,
.hero-bg-media img{
  width:100%;
  height:100%;
  display:block;
}
.hero-bg-media img{
  object-fit:cover;
  object-position:center;
  filter: grayscale(10%) contrast(98%) brightness(103%);
  transform: scale(1.02);
}
.hero-depth{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}
/* lighter overlays (previous version washed everything out) */
.hero-depth-1{
  background:
    radial-gradient(900px 520px at 18% 40%, rgba(246,246,244,0.10) 0%, rgba(246,246,244,0.35) 55%, rgba(246,246,244,0.70) 100%);
}
.hero-depth-2{
  background:
    linear-gradient(to bottom, rgba(246,246,244,0.10) 0%, rgba(246,246,244,0.55) 70%, rgba(246,246,244,0.92) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
}

/* Utility classes (remove inline styles in HTML) */
.fw-500{font-weight:500}
.mt-28{margin-top:28px}
.mt-36{margin-top:36px}
.mt-40{margin-top:40px}
.mt-24{margin-top:24px}
.mt-16{margin-top:16px}
.mb-6{margin-bottom:6px}
.mb-10{margin-bottom:10px}
.mt-10{margin-top:10px}
.py-22{padding:22px}
.minh-auto{min-height:auto}
.align-center{align-items:center}
.align-start{align-items:start}
.text-center{text-align:center}
.mx-auto{margin-left:auto; margin-right:auto}
.maxw-820{max-width:820px}
.footer-title{font-weight:500; font-size:20px; margin-bottom:10px}
.footer-links{display:flex; flex-direction:column; gap:10px}
.step-num{font-weight:500; color:var(--accent); font-size:18px}
.hr-my-18{margin:18px 0}



/* Standortgrafik */
.location-map{display:block;width:100%;height:auto;}

/* simple bullets list for strategy page */
.bullets{margin:10px 0 0 18px;padding:0;}
.bullets li{margin:8px 0;}


/* Führung & Struktur */
.leadership-hero{ background: var(--bg); }
.leader-hero{
  display:grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 420px);
  gap: clamp(24px, 4vw, 56px);
  align-items:center;
}
.leader-hero__copy p{ margin-top: 14px; }
.leader-hero__media{
  justify-self:end;
  width:100%;
  max-width:420px;
}
.portrait{
  width:100%;
  height:auto;
  display:block;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--border);
}

/* Lists without icons or decorative elements */
.list{
  margin: 14px 0 0 0;
  padding-left: 20px;
}
.list li{ margin: 6px 0; }

/* Responsive: mobile stacks (text first, portrait below) */
@media (max-width: 899px){
  .leader-hero{
    grid-template-columns: 1fr;
    align-items:start;
  }
  .leader-hero__media{
    justify-self:start;
    max-width: 520px;
    margin-top: 18px;
  }
}
