/* =========================================================================
   Groeschke Consulting UG — design system (refresh 2026-07)
   Professional B2B: refined navy + teal, Inter, generous whitespace.
   Note: functional selectors (.modal.is-open, .carousel, .slide, .prev/.next,
   .icon-container/.round-icon, #contact-form) are preserved for script.js.
   ========================================================================= */

:root{
  /* Brand */
  --navy:        #0f2742;   /* primary brand / headings / footer */
  --navy-700:    #163a5c;
  --navy-600:    #1e4d78;
  --teal:        #0d9488;   /* accent: eyebrows, icons, links, highlights */
  --teal-600:    #0b7d73;

  /* Neutrals */
  --ink:         #17233a;   /* strong headings */
  --text:        #45526b;   /* body copy */
  --muted:       #6b7788;   /* secondary text */
  --bg:          #ffffff;
  --bg-soft:     #f4f7fb;   /* alternating section background */
  --bg-tint:     #eef3f9;
  --line:        #e4eaf1;   /* borders */
  --card:        #ffffff;

  /* System */
  --radius:      14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 2px rgba(15,39,66,.04), 0 2px 8px rgba(15,39,66,.05);
  --shadow-md:   0 8px 24px rgba(15,39,66,.08);
  --shadow-lg:   0 20px 48px rgba(15,39,66,.14);
  --container:   1160px;
  --ease:        cubic-bezier(.4,0,.2,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ height:100%; }
body{
  font-family:'Inter','Roboto',system-ui,-apple-system,Segoe UI,sans-serif;
  margin:0;
  line-height:1.65;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Layout */
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
img{ max-width:100%; height:auto; display:block; }
section{ padding:76px 0; }

/* Typography */
h1,h2,h3,h4{ color:var(--ink); font-weight:800; letter-spacing:-.02em; margin:0 0 .5em; }
h2{ font-size:clamp(1.7rem,3.2vw,2.25rem); text-align:center; line-height:1.15; }
h3{ font-size:1.18rem; font-weight:700; letter-spacing:-.01em; }
p{ margin:0 0 1rem; }
a{ text-decoration:none; color:var(--teal); transition:color .15s var(--ease); }
a:hover{ color:var(--teal-600); }

.eyebrow{
  display:inline-block; font-size:.8rem; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--teal); margin-bottom:14px;
}
.section-intro{ max-width:640px; margin:0 auto 44px; text-align:center; color:var(--muted); font-size:1.05rem; }

/* Buttons */
.button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; font-family:inherit; font-size:1rem; font-weight:600;
  line-height:1; border-radius:10px; border:1.5px solid var(--navy);
  background:var(--navy); color:#fff; cursor:pointer; text-align:center;
  transition:transform .12s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow:var(--shadow-sm);
}
.button:hover{ background:var(--navy-700); border-color:var(--navy-700); transform:translateY(-2px); box-shadow:var(--shadow-md); color:#fff; }
.button.alt{ background:transparent; color:var(--navy); border-color:#cdd8e6; box-shadow:none; }
.button.alt:hover{ background:var(--bg-soft); border-color:var(--navy); color:var(--navy); transform:translateY(-2px); }
.button.small{ padding:11px 18px; font-size:.92rem; }
.button.teal{ background:var(--teal); border-color:var(--teal); }
.button.teal:hover{ background:var(--teal-600); border-color:var(--teal-600); }

/* Header */
header{
  background:rgba(255,255,255,.92); backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:1200;
}
header .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:14px; padding-bottom:14px; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo a{ font-weight:800; color:var(--ink); font-size:1.3rem; letter-spacing:-.02em; }
#logo{ width:38px; height:auto; border-radius:9px; display:inline-block; }
header nav{ display:flex; align-items:center; gap:26px; }
header nav a{ color:var(--muted); font-weight:500; font-size:.98rem; }
header nav a:hover{ color:var(--navy); }
header nav a.button{ color:#fff; }
header nav a.button:hover{ color:#fff; }

/* Hero */
#hero{
  background:linear-gradient(180deg,#f7fafd 0%,#eef4fb 100%);
  border-bottom:1px solid var(--line);
  padding:84px 0;
}
.hero-inner{ display:flex; gap:56px; align-items:center; }
.hero-text{ width:54%; }
.hero-text h1{
  font-size:clamp(2rem,4vw,3rem); line-height:1.1; color:var(--navy); margin:0 0 18px;
}
.hero-text > p{ font-size:1.12rem; color:var(--text); margin:0 0 26px; max-width:38em; }
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:22px; }
.hero-ctas br{ display:none; }
.hero-meta .micro{ color:var(--muted); font-size:.95rem; margin:0 0 14px; }
.hero-meta .micro::before{ content:"\2713"; color:var(--teal); font-weight:700; margin-right:7px; }
.trustline{
  display:flex; flex-wrap:wrap; gap:10px 18px; color:var(--muted); font-size:.9rem;
  padding-top:16px; border-top:1px solid var(--line); list-style:none;
}
.trustline span, .trustline{ }

/* Hero image */
.hero-image{ width:46%; display:flex; justify-content:center; }
.hero-image img{ border-radius:18px; box-shadow:var(--shadow-lg); }

/* Services */
#services{ background:var(--bg); }
.service-row{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px; overflow:visible;
  max-width:var(--container); margin:0 auto; padding:0 24px;
}
.service{
  background:var(--card); padding:28px 24px; border-radius:var(--radius);
  border:1px solid var(--line); box-shadow:var(--shadow-sm);
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.service:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:#cfe0ee; }
.service-icon{
  width:52px; height:52px; display:flex; align-items:center; justify-content:center;
  border-radius:12px; background:var(--bg-tint); color:var(--teal); font-size:1.35rem; margin-bottom:16px;
}
.service h3{ margin:0 0 8px; color:var(--navy); }
.service p{ color:var(--text); margin:0 0 18px; font-size:.98rem; }
.service .button{ margin-top:auto; }

/* About */
#about{ background:var(--bg-soft); }
.about-content{ display:flex; align-items:center; gap:44px; }
.about-content .hero-image{ width:44%; }
.about-content .hero-image img{ border-radius:16px; box-shadow:var(--shadow-md); }
.about-content > p{ flex:1; font-size:1.1rem; color:var(--text); }

/* Team */
#team{ background:var(--bg); }
.team-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:22px; }
.team-member{
  background:var(--card); padding:26px 18px; border-radius:var(--radius); text-align:center;
  border:1px solid var(--line); box-shadow:var(--shadow-sm);
  transition:transform .18s var(--ease), box-shadow .18s var(--ease);
}
.team-member:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.team-member h3{ margin:14px 0 4px; font-size:1.05rem; color:var(--navy); }
.team-member p{ margin:0; color:var(--muted); font-size:.9rem; }
.icon-container{
  display:inline-block; width:96px; height:96px; overflow:hidden; border-radius:50%;
  border:3px solid var(--bg-tint); box-shadow:var(--shadow-sm);
}
.round-icon{ width:100%; height:100%; object-fit:cover; }

/* Data viz / Tableau */
#viz-section{ background:var(--bg-soft); }

/* Success stories */
.success-stories{ background:var(--bg-soft); padding:76px 0; text-align:center; }
.carousel-container{
  width:100%; max-width:1000px; display:flex; align-items:center; position:relative;
  overflow:hidden; margin:24px auto 0;
}
.carousel{ display:flex; overflow-x:auto; scroll-behavior:smooth; padding:12px 4px; scrollbar-width:none; gap:20px; }
.carousel::-webkit-scrollbar{ display:none; }
.slide{
  min-width:340px; max-width:380px; flex-shrink:0; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:0 0 22px; overflow:hidden;
  text-align:left; transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.slide:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.slide img{ width:100%; height:180px; object-fit:cover; border-radius:0; margin:0 0 16px; }
.slide h3{ padding:0 22px; color:var(--navy); }
.slide p{ padding:0 22px; color:var(--text); font-size:.96rem; margin:0; }
button.prev, button.next{
  position:absolute; top:50%; transform:translateY(-50%); background:#fff; border:1px solid var(--line);
  width:44px; height:44px; font-size:1.3rem; color:var(--navy); cursor:pointer; border-radius:50%;
  box-shadow:var(--shadow-md); z-index:10; display:flex; align-items:center; justify-content:center;
  transition:background .15s var(--ease);
}
button.prev:hover, button.next:hover{ background:var(--bg-soft); }
button.prev{ left:6px; } button.next{ right:6px; }

/* Contact */
#contact{ background:var(--navy); color:#e8eef6; padding:84px 0; }
#contact h2{ color:#fff; }
#contact > .container > p{ text-align:center; max-width:620px; margin:0 auto 36px; color:#b9c6d8; }
#contact-form{ max-width:620px; margin:0 auto; background:#fff; padding:32px; border-radius:var(--radius); box-shadow:var(--shadow-lg); }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; margin-bottom:7px; color:var(--navy); font-weight:600; font-size:.94rem; }
.form-group input, .form-group textarea{
  width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:10px; font-size:1rem;
  font-family:inherit; background:#fff; color:var(--ink); transition:border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-group input:focus, .form-group textarea:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(13,148,136,.14); }
.form-group textarea{ resize:vertical; min-height:130px; }
#contact-form .button{ width:100%; margin-top:6px; }
.form-row{ display:flex; gap:18px; }
.form-row .form-group{ flex:1; }
.form-group select{
  width:100%; padding:13px 40px 13px 14px; border:1.5px solid var(--line); border-radius:10px; font-size:1rem;
  font-family:inherit; background-color:#fff; color:var(--ink); appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7788' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center;
}
.form-group select:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(13,148,136,.14); }
.form-consent{ margin-top:2px; }
.checkbox-label{ display:flex; align-items:flex-start; gap:10px; font-weight:400; color:var(--muted); font-size:.86rem; line-height:1.5; cursor:pointer; }
.checkbox-label input[type="checkbox"]{ width:18px; height:18px; margin-top:2px; flex-shrink:0; accent-color:var(--teal); }
.checkbox-label a{ color:var(--teal); text-decoration:underline; }
@media (max-width:560px){ .form-row{ flex-direction:column; gap:0; } }
#form-feedback{ margin-top:12px; text-align:center; }
.error{ color:#d64545; margin-top:10px; }
.success{ color:#1f9d6b; margin-top:10px; }

/* Footer */
footer{ background:var(--navy); color:#c4d0e0; text-align:center; padding:28px 0; font-size:.9rem; border-top:1px solid rgba(255,255,255,.08); }
footer a{ color:#e8eef6; text-decoration:none; }
footer a:hover{ color:#fff; text-decoration:underline; }
.footer-social{ margin-top:6px; }
.footer-social p{ margin:6px 0; }
.social-icons{ display:inline-flex; gap:8px; align-items:center; margin:4px 0 0; }
.social-link{
  display:inline-flex; align-items:center; justify-content:center; color:#fff; background:rgba(255,255,255,.1);
  width:38px; height:38px; border-radius:9px; transition:background .15s var(--ease);
}
.social-link:hover{ background:var(--teal); }
.social-link svg{ width:20px; height:20px; }

/* =========================================================================
   Modals (generic overlay) — preserved behavior
   ========================================================================= */
.modal{
  position:fixed; inset:0; width:100%; height:100%; background:rgba(15,39,66,.55);
  display:none; align-items:center; justify-content:center; padding:20px; z-index:2000;
  opacity:0; transition:opacity .18s var(--ease); backdrop-filter:blur(2px);
}
.modal.is-open, .modal[aria-hidden="false"]{ display:flex; opacity:1; }
.modal-content{
  background:#fff; max-width:780px; width:100%; border-radius:var(--radius); padding:32px;
  box-shadow:var(--shadow-lg); position:relative; z-index:2001; max-height:calc(100vh - 80px); overflow-y:auto;
}
.modal-content h3{ color:var(--navy); }
.close{
  position:absolute; right:16px; top:14px; color:var(--muted); font-size:26px; font-weight:700;
  cursor:pointer; background:transparent; border:none; line-height:1;
}
.close:hover, .close:focus{ color:var(--navy); }

/* Cookie consent — rendered as a slim bottom banner, not a blocking modal */
#cookieConsentModal{
  inset:auto 0 0 0; height:auto; width:100%; background:transparent; backdrop-filter:none;
  align-items:stretch; justify-content:center; padding:0; z-index:2100;
}
#cookieConsentModal.is-open{ display:block; }
#cookieConsentModal .modal-content{
  max-width:var(--container); margin:0 auto 16px; width:calc(100% - 32px);
  border:1px solid var(--line); border-radius:var(--radius); padding:20px 24px;
  box-shadow:var(--shadow-lg); max-height:none;
}
#cookieConsentModal h2{ text-align:left; font-size:1.15rem; margin:0 0 8px; }
#cookieConsentModal p{ font-size:.9rem; color:var(--muted); margin:0 0 6px; }

/* Accessibility focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid rgba(13,148,136,.4); outline-offset:2px;
}
.hidden{ display:none !important; }

/* Automatisierungs-Check (lead magnet) */
.ac-band{ background:linear-gradient(120deg,var(--navy) 0%,var(--navy-600) 100%); color:#fff; }
.ac-band-inner{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.ac-band-text{ max-width:640px; }
.ac-band h2{ color:#fff; text-align:left; margin:6px 0 10px; }
.ac-band p{ color:#c4d4e6; margin:0; font-size:1.05rem; }
.ac-eyebrow{ color:#7fe3d6; }
.ac-band-btn{ flex-shrink:0; font-size:1.05rem; padding:16px 30px; }
.ac-modal{ max-width:560px; }
.ac-head{ margin-bottom:6px; }
.ac-progress{ height:6px; background:var(--bg-tint); border-radius:99px; overflow:hidden; margin:8px 0 18px; }
.ac-progress span{ display:block; height:100%; background:var(--teal); border-radius:99px; transition:width .3s var(--ease); }
.ac-step{ color:var(--muted); font-size:.85rem; margin:0 0 6px; }
.ac-q{ color:var(--navy); font-size:1.3rem; margin:0 0 18px; }
.ac-sub{ color:var(--muted); font-size:.92rem; margin:-8px 0 18px; }
.ac-options{ display:flex; flex-direction:column; gap:10px; }
.ac-option{ text-align:left; padding:15px 18px; border:1.5px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font-family:inherit; font-size:1rem; cursor:pointer; transition:border-color .15s var(--ease), background .15s var(--ease), transform .1s var(--ease); }
.ac-option:hover{ border-color:var(--teal); background:var(--bg-soft); transform:translateX(2px); }
.ac-option.selected{ border-color:var(--teal); background:rgba(13,148,136,.08); }
.ac-nav{ margin-top:16px; }
.ac-modal .form-group{ margin-bottom:14px; }
#ac-form .button{ width:100%; margin-top:6px; }
#ac-feedback:empty{ display:none; }
.ac-result{ text-align:center; }
.ac-score-num{ font-size:3rem; font-weight:800; color:var(--navy); line-height:1; }
.ac-score-num span{ font-size:1.3rem; color:var(--muted); font-weight:600; }
.ac-score-label{ color:var(--teal); font-weight:700; margin-top:6px; font-size:1.1rem; }
.ac-meter{ height:10px; background:var(--bg-tint); border-radius:99px; overflow:hidden; margin:18px 0; }
.ac-meter span{ display:block; height:100%; background:linear-gradient(90deg,var(--teal),var(--navy-600)); border-radius:99px; }
.ac-result-text{ color:var(--text); }
.ac-result-ctas{ margin:18px 0 8px; }
.ac-note{ color:var(--muted); font-size:.85rem; }
@media (max-width:640px){ .ac-band-inner{ flex-direction:column; align-items:flex-start; } .ac-band-btn{ width:100%; } }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width:960px){
  section{ padding:56px 0; }
  #hero{ padding:56px 0; }
  .hero-inner{ flex-direction:column; text-align:center; gap:36px; }
  .hero-text{ width:100%; }
  .hero-text > p{ margin-left:auto; margin-right:auto; }
  .hero-ctas{ justify-content:center; }
  .trustline{ justify-content:center; }
  .hero-image{ width:100%; max-width:460px; }
  .about-content{ flex-direction:column; text-align:center; gap:28px; }
  .about-content .hero-image{ width:100%; max-width:420px; }
}
@media (max-width:720px){
  header nav{ gap:14px; }
  header nav a:not(.button){ display:none; }        /* keep only the CTA on small screens */
  .hero-text h1{ font-size:2rem; }
  #contact-form{ padding:22px; }
  .slide{ min-width:86%; max-width:86%; }
  #cookieConsentModal .modal-content{ padding:18px; }
  .container{ padding:0 16px; }
  .logo a{ font-size:1.05rem; }
  #logo{ width:32px; }
  header nav a.button{ padding:11px 15px; font-size:.9rem; }
}
@media (max-width:400px){
  .logo a{ font-size:.98rem; }
  header nav a.button{ padding:10px 12px; font-size:.85rem; }
}
