/* ==========================================================================
   GRADL SOLUTIONS — style.css
   Farbwelt aus dem Logo, helle Business-Optik, 5 Seiten
   ========================================================================== */

:root{
  --navy:        #071525;
  --navy-800:    #0C2136;
  --navy-600:    #1B3A56;
  --teal:        #52D6C1;
  --teal-dark:   #2FA894;
  --cyan:        #48AEDA;
  --cyan-dark:   #2A87B4;
  --light:       #F5F8FA;
  --white:       #FFFFFF;

  --ink:         #071525;
  --ink-soft:    #405568;
  --muted:       #64798C;
  --line:        #E1E9F0;
  --line-strong: #CFDCE7;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(7,21,37,.05), 0 4px 14px rgba(7,21,37,.05);
  --shadow-md: 0 2px 4px rgba(7,21,37,.04), 0 14px 34px rgba(7,21,37,.09);
  --shadow-lg: 0 24px 60px rgba(7,21,37,.14);

  --header-h: 78px;
  --gap: clamp(20px, 3vw, 34px);
  --section-y: clamp(72px, 8.5vw, 126px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 16px); overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font);
  font-size:17px; font-weight:400; line-height:1.65;
  color:var(--ink-soft); background:var(--white);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
img{ height:auto; }
h1,h2,h3,h4{ color:var(--ink); font-weight:800; line-height:1.15; letter-spacing:-.022em; margin:0 0 .5em; }
p{ margin:0 0 1em; }
ul,ol{ margin:0; padding:0; list-style:none; }
a{ color:inherit; }

:focus-visible{ outline:3px solid var(--cyan); outline-offset:3px; border-radius:4px; }
.skip-link{
  position:absolute; left:16px; top:-100px; z-index:200;
  background:var(--navy); color:#fff; padding:12px 20px;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
  font-weight:700; text-decoration:none; transition:top .2s ease;
}
.skip-link:focus{ top:0; }

/* ---------- Layout ---------- */
.container{ width:100%; max-width:1200px; margin-inline:auto; padding-inline:clamp(20px,4vw,32px); }
.container-narrow{ max-width:880px; }
.section{ padding-block:var(--section-y); }
.section-tint{ background:var(--light); }

.section-head{ max-width:680px; margin-bottom:clamp(40px,5vw,64px); }
.section-head h2{ font-size:clamp(1.9rem,3.6vw,2.85rem); }
.section-head p{ font-size:1.075rem; color:var(--muted); margin:0; }
.lead{ font-size:1.075rem; color:var(--muted); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font:inherit; font-weight:700; font-size:.97rem; letter-spacing:-.005em;
  padding:13px 24px; border-radius:999px; border:1.5px solid transparent;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:background-color .18s ease, color .18s ease, border-color .18s ease,
             transform .18s ease, box-shadow .18s ease;
}
.btn-lg{ padding:16px 30px; font-size:1.02rem; }
.btn-block{ display:flex; width:100%; }

.btn-primary{ background:var(--navy); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--navy-800); transform:translateY(-2px); box-shadow:var(--shadow-md); }

.btn-outline{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-outline:hover{ border-color:var(--navy); background:var(--white); transform:translateY(-2px); }

.btn-ghost{ background:var(--white); color:var(--ink); border-color:var(--line-strong); box-shadow:var(--shadow-sm); }
.btn-ghost:hover{ border-color:var(--teal); transform:translateY(-2px); box-shadow:var(--shadow-md); }

.btn-accent{ background:var(--teal); color:var(--navy); }
.btn-accent:hover{ background:#6BE3D0; transform:translateY(-2px); box-shadow:0 12px 30px rgba(82,214,193,.28); }

.btn-quiet{ background:transparent; color:#fff; border-color:rgba(255,255,255,.28); }
.btn-quiet:hover{ border-color:var(--teal); color:var(--teal); transform:translateY(-2px); }

.link-arrow{
  display:inline-flex; align-items:center; gap:.45em; margin-top:auto; padding-top:4px;
  color:var(--ink); font-weight:700; font-size:.95rem; text-decoration:none;
}
.link-arrow span{ transition:transform .2s ease; color:var(--teal-dark); }
.link-arrow:hover{ color:var(--teal-dark); }
.link-arrow:hover span{ transform:translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100; height:var(--header-h);
  background:rgba(255,255,255,.86); border-bottom:1px solid transparent;
  transition:background-color .25s ease, border-color .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled{
  background:rgba(255,255,255,.72);
  border-bottom-color:rgba(7,21,37,.08);
  box-shadow:0 6px 24px rgba(7,21,37,.06);
}
.site-header::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  transition:backdrop-filter .25s ease;
}
.site-header.is-scrolled::before{
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
}
.header-inner{ display:flex; align-items:center; gap:20px; height:100%; }

.brand{ display:flex; align-items:center; flex-shrink:0; text-decoration:none; }
.brand img{ height:44px; width:auto; border-radius:8px; transition:height .25s ease; }
.site-header.is-scrolled .brand img{ height:38px; }

.nav{ display:flex; align-items:center; gap:26px; margin-left:auto; }
.nav-list{ display:flex; align-items:center; gap:4px; }
.nav-link{
  display:block; padding:9px 14px; border-radius:8px;
  font-size:.94rem; font-weight:600; color:var(--ink-soft); text-decoration:none;
  transition:color .18s ease, background-color .18s ease;
}
.nav-link:hover{ color:var(--ink); background:rgba(7,21,37,.045); }
.nav-link.is-active{ color:var(--ink); }
.nav-link.is-active::after{
  content:""; display:block; height:2px; width:18px; margin:5px auto -7px;
  background:var(--teal); border-radius:2px;
}
.nav-link-home{ display:none; }
.nav-close{
  display:none; position:absolute; top:14px; right:16px;
  width:38px; height:38px; align-items:center; justify-content:center;
  border:none; background:transparent; border-radius:9px; cursor:pointer;
  color:var(--ink-soft); padding:0;
}
.nav-close svg{ width:19px; height:19px; }
.nav-close:hover{ background:rgba(7,21,37,.06); color:var(--ink); }
.nav-cta{ display:none; }
.header-cta{ flex-shrink:0; }

.burger{
  display:none; width:46px; height:46px; margin-left:auto;
  background:transparent; border:1.5px solid var(--line-strong); border-radius:12px;
  cursor:pointer; padding:0; place-items:center; align-content:center; gap:5px;
}
.burger span{
  display:block; width:19px; height:2px; margin-inline:auto;
  background:var(--ink); border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav-open .burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2){ opacity:0; }
.nav-open .burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-backdrop{
  position:fixed; inset:0; z-index:90;
  background:rgba(7,21,37,.4); opacity:0; transition:opacity .25s ease;
}
.nav-open .nav-backdrop{ opacity:1; }

/* ==========================================================================
   HERO (Startseite)
   ========================================================================== */
.hero{
  position:relative;
  padding-top:calc(var(--header-h) + clamp(44px,6vw,80px));
  padding-bottom:clamp(60px,7vw,100px);
  background:
    radial-gradient(60% 70% at 78% 22%, rgba(82,214,193,.10) 0%, rgba(82,214,193,0) 62%),
    radial-gradient(52% 62% at 96% 66%, rgba(72,174,218,.12) 0%, rgba(72,174,218,0) 60%),
    linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(28px,4vw,56px); align-items:center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:9px;
  font-size:.86rem; font-weight:700; color:var(--navy-600);
  background:var(--white); border:1px solid var(--line);
  padding:7px 16px 7px 12px; border-radius:999px; margin-bottom:22px;
  box-shadow:var(--shadow-sm);
  animation:rise .8s both;
}
.badge-dot{
  width:8px; height:8px; border-radius:50%; background:var(--teal);
  box-shadow:0 0 0 4px rgba(82,214,193,.22);
  animation:blip 2.6s ease-in-out infinite;
}
@keyframes blip{ 0%,100%{ box-shadow:0 0 0 4px rgba(82,214,193,.22); } 50%{ box-shadow:0 0 0 7px rgba(82,214,193,.08); } }

.hero-title{
  font-size:clamp(2.3rem,5.2vw,4.05rem); letter-spacing:-.035em; line-height:1.06;
  margin-bottom:16px; animation:rise .8s .06s both;
}
.hero-services{
  font-size:.95rem; font-weight:700; color:var(--teal-dark);
  margin-bottom:20px; animation:rise .8s .12s both;
}
.hero-text{
  font-size:1.14rem; color:var(--muted); max-width:56ch; margin-bottom:30px;
  animation:rise .8s .18s both;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; animation:rise .8s .26s both; }
@keyframes rise{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }

.hero-stats{
  display:flex; flex-wrap:wrap; gap:clamp(20px,3vw,42px);
  margin:38px 0 0; padding-top:26px; border-top:1px solid var(--line-strong);
  animation:rise .8s .34s both;
}
.hero-stats div{ display:flex; flex-direction:column-reverse; }
.hero-stats dd{ margin:0; font-size:1.75rem; font-weight:800; color:var(--ink); letter-spacing:-.03em; line-height:1.1; }
.hero-stats dt{ font-size:.85rem; color:var(--muted); font-weight:600; }

.hero-visual{ position:relative; min-height:440px; }
.hero-visual .circuit{
  position:absolute; inset:-8% -14% -8% 0; width:114%; height:116%;
  animation:fadeIn 1.4s .35s ease both;
}
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }

/* ---------- Circuit-Motiv ---------- */
.circuit-base path{ stroke:var(--line-strong); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.circuit-nodes circle{ fill:var(--cyan); opacity:.85; }
.circuit-nodes circle:nth-child(odd){ fill:var(--teal); }
.circuit-rings circle{ fill:none; stroke:var(--teal); stroke-width:1.2; opacity:.35; }
.circuit-live path{ stroke:var(--teal); stroke-width:2.2; stroke-linecap:round; stroke-dasharray:70 930; }
.pulse{ animation:flow 16s linear infinite; }
.p1{ animation-duration:15s; animation-delay:0s;   stroke:var(--teal); }
.p2{ animation-duration:19s; animation-delay:-4s;  stroke:var(--cyan); }
.p3{ animation-duration:17s; animation-delay:-9s;  stroke:var(--teal); }
.p4{ animation-duration:21s; animation-delay:-13s; stroke:var(--cyan); }
.p5{ animation-duration:18s; animation-delay:-6s;  stroke:var(--teal); }
@keyframes flow{ from{ stroke-dashoffset:1000; } to{ stroke-dashoffset:0; } }

/* ==========================================================================
   PAGE HERO (Unterseiten)
   ========================================================================== */
.page-hero{
  padding-top:calc(var(--header-h) + clamp(38px,5vw,66px));
  padding-bottom:clamp(38px,5vw,60px);
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(82,214,193,.12) 0%, rgba(82,214,193,0) 62%),
    linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  border-bottom:1px solid var(--line);
}
.page-hero h1{ font-size:clamp(1.95rem,4.2vw,3.1rem); max-width:20ch; margin-bottom:16px; }
.page-hero p{ font-size:1.08rem; color:var(--muted); max-width:70ch; margin:0; }

.breadcrumb{
  display:flex; align-items:center; gap:9px;
  font-size:.87rem; color:var(--muted); margin-bottom:18px;
}
.breadcrumb a{ text-decoration:none; font-weight:600; }
.breadcrumb a:hover{ color:var(--teal-dark); }
.breadcrumb-current{ color:var(--ink); font-weight:700; }

/* ==========================================================================
   KARTEN
   ========================================================================== */
.cards-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap); align-items:stretch; }
.card{
  display:flex; flex-direction:column; position:relative;
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service{ padding:clamp(26px,2.6vw,34px); }
.service:hover,.plan:hover,.project:hover,.detail-block:hover{
  transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:rgba(82,214,193,.55);
}
.service h3{ font-size:1.4rem; margin-bottom:10px; }
.service > p{ color:var(--muted); margin-bottom:22px; }

.card-featured{ border-color:var(--navy); box-shadow:var(--shadow-md); }
.card-flag,.plan-flag{
  position:absolute; top:-13px; left:clamp(26px,2.6vw,34px);
  background:var(--teal); color:var(--navy);
  font-size:.79rem; font-weight:800; padding:5px 14px; border-radius:999px;
}

.service-mark,.plan-mark,.detail-icon,.split-icon{
  display:grid; place-items:center; flex-shrink:0;
  border-radius:14px;
  background:linear-gradient(140deg, rgba(82,214,193,.16), rgba(72,174,218,.16));
}
.service-mark,.plan-mark{ width:54px; height:54px; margin-bottom:20px; }
.service-mark svg,.plan-mark svg{ width:28px; height:28px; }
.detail-icon{ width:48px; height:48px; margin-bottom:18px; }
.detail-icon svg{ width:24px; height:24px; }
.split-icon{ width:42px; height:42px; border-radius:12px; }
.split-icon svg{ width:21px; height:21px; }
.service-mark svg,.plan-mark svg,.detail-icon svg,.split-icon svg{
  stroke:var(--navy); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; fill:none;
}

.ticks{ display:grid; gap:11px; margin-bottom:26px; }
.ticks li{ position:relative; padding-left:26px; font-size:.97rem; color:var(--ink-soft); }
.ticks li::before{
  content:""; position:absolute; left:0; top:.55em;
  width:12px; height:7px;
  border-left:2px solid var(--teal-dark); border-bottom:2px solid var(--teal-dark);
  transform:rotate(-45deg) translateY(-2px); border-radius:1px;
}

/* ==========================================================================
   DETAIL-BLÖCKE (IT Services)
   ========================================================================== */
.detail-blocks{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap); }
.detail-block{
  position:relative; padding:clamp(24px,2.4vw,32px);
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.detail-block h3{ font-size:1.2rem; margin-bottom:10px; }
.detail-block p{ margin:0; color:var(--muted); font-size:.98rem; }
.detail-block-highlight{
  grid-column:span 2; border-color:var(--navy);
  background:linear-gradient(150deg, var(--white) 0%, #F3FAF9 100%);
}
.detail-tag{
  display:inline-block; margin-bottom:14px;
  background:var(--teal); color:var(--navy);
  font-size:.78rem; font-weight:800; padding:4px 12px; border-radius:999px;
}

/* ==========================================================================
   SPLIT (Webentwicklung / Hosting)
   ========================================================================== */
.split{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--gap); }
.split-col{ padding:clamp(26px,2.6vw,36px); }
.split-head{ display:flex; align-items:center; gap:14px; margin-bottom:24px; }
.split-head h3{ margin:0; font-size:1.3rem; }
.split-col .ticks{ margin-bottom:0; }
.split-col .ticks li{ font-size:1rem; }
.split-note{
  max-width:70ch; margin:clamp(26px,3vw,36px) auto 0; text-align:center;
  color:var(--muted); font-size:1rem;
}

/* ==========================================================================
   PROJEKTE / REFERENZEN
   ========================================================================== */
.projects{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap); align-items:stretch; }
.projects-single{ grid-template-columns:minmax(0,620px); justify-content:center; }
.projects-duo{ grid-template-columns:repeat(2,minmax(0,1fr)); }
a.project{ text-decoration:none; color:inherit; }
a.project:focus-visible{ outline:3px solid var(--cyan); outline-offset:3px; }
.project .link-arrow{ margin-top:18px; }
a.project:hover .link-arrow{ color:var(--teal-dark); }
a.project:hover .link-arrow span{ transform:translateX(4px); }
.project{ overflow:hidden; }
.shot{ background:var(--light); border-bottom:1px solid var(--line); }
.shot img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.shot-placeholder{ aspect-ratio:16/10; display:flex; flex-direction:column;
  background:linear-gradient(160deg,#F2F7FA 0%, #E8F1F6 100%); }
.shot-bar{ display:flex; gap:6px; align-items:center; padding:12px 14px; border-bottom:1px solid rgba(7,21,37,.07); }
.shot-bar span{ width:9px; height:9px; border-radius:50%; background:var(--line-strong); }
.shot-bar span:first-child{ background:rgba(82,214,193,.8); }
.shot-body{ flex:1; display:grid; place-content:center; justify-items:center; gap:5px; text-align:center; padding:16px; }
.shot-label{ font-weight:700; color:var(--navy-600); font-size:.95rem; }
.shot-body small{ font-size:.8rem; color:var(--muted); }

.project-body{ padding:clamp(22px,2.4vw,30px); display:flex; flex-direction:column; flex:1; }
.project-index{ font-size:.83rem; font-weight:700; color:var(--teal-dark); margin-bottom:6px; }
.project h3{ font-size:1.3rem; margin-bottom:8px; }
.project-body p{ color:var(--muted); font-size:.97rem; margin-bottom:16px; }
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.tags span{
  font-size:.8rem; font-weight:600; color:var(--navy-600);
  background:var(--light); border:1px solid var(--line);
  padding:5px 11px; border-radius:999px;
}

/* ==========================================================================
   3D-COVERFLOW (Referenz-Screenshots)
   Reines CSS: animiert werden nur transform und opacity, beides läuft auf
   dem Compositor. Kein Layout, kein Repaint, kein blur(). Das Laufen wird
   per IntersectionObserver eingeschaltet (siehe script.js), außerhalb des
   Viewports stehen die Animationen still.
   ========================================================================== */
.cf-stage{
  aspect-ratio:16/10;
  display:grid; place-items:center;
  overflow:hidden;
  background:linear-gradient(160deg,#F2F7FA 0%, #E8F1F6 100%);
  border-bottom:1px solid var(--line);
}
.coverflow{
  position:relative;
  width:74%; aspect-ratio:16/10;
  perspective:900px;
  transform-style:preserve-3d;
}
.cf-shot{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; object-position:top center;
  border-radius:8px;
  border:1px solid var(--line-strong);
  background:linear-gradient(150deg,#FFFFFF 0%, #EAF2F7 100%);
  box-shadow:0 14px 32px rgba(7,21,37,.20);
  backface-visibility:hidden;
  display:grid; place-items:center;
  font-size:.78rem; font-weight:700; color:var(--navy-600);
  animation:cfLoop 12s infinite ease-in-out;
  animation-play-state:paused;
}
.cf-live .cf-shot{ animation-play-state:running; }
.project:hover .cf-shot,
.project:focus-within .cf-shot{ animation-play-state:paused; }

.cf-shot:nth-child(1){ animation-delay:0s; }
.cf-shot:nth-child(2){ animation-delay:-4s; }
.cf-shot:nth-child(3){ animation-delay:-8s; }

@keyframes cfLoop{
  /* Vorne: bewusst OHNE translateZ. Ein positives translateZ vergrößert die
     Ebene, und da der Browser animierte Ebenen nur einmal in Grundgröße
     rastert, würde das Bild hochskaliert und damit unscharf. Die Tiefe
     entsteht stattdessen dadurch, dass die hinteren Kacheln zurückweichen. */
  0%,25%        { transform:rotateY(0deg);                                      opacity:1;   z-index:3; }
  /* nach rechts hinten geklappt */
  33.33%,58.33% { transform:rotateY(-50deg) translateZ(-130px) translateX(45%); opacity:.45; z-index:1; }
  /* nach links hinten geklappt */
  66.66%,91.66% { transform:rotateY(50deg) translateZ(-130px) translateX(-45%); opacity:.45; z-index:1; }
  100%          { transform:rotateY(0deg);                                      opacity:1;   z-index:3; }
}

/* ==========================================================================
   PREISE
   ========================================================================== */
.plans{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap); align-items:stretch; }
.plans-single{ grid-template-columns:minmax(0,400px); justify-content:center; }
.plans-duo{ grid-template-columns:repeat(2,minmax(0,1fr)); max-width:820px; margin-inline:auto; }
.plan{ padding:clamp(26px,2.6vw,34px); }
.plan h3{ font-size:1.35rem; margin-bottom:4px; }
.plan-for{ color:var(--teal-dark); font-size:.92rem; font-weight:700; margin-bottom:14px; }
.plan-text{ color:var(--muted); font-size:.97rem; margin-bottom:20px; }

/* "Preis auf Anfrage" statt Zahl – gleiche Zeilenhöhe wie .plan-amount */
.plan-ask{ font-size:1.3rem; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
.plan-featured{ border-color:var(--navy); box-shadow:var(--shadow-md); }

.plan-price{
  display:flex; align-items:baseline; gap:6px;
  padding-bottom:22px; margin-bottom:24px; border-bottom:1px solid var(--line);
}
.plan-amount{ font-size:2.4rem; font-weight:800; color:var(--ink); letter-spacing:-.035em; line-height:1; }
.plan-suffix{ font-size:1rem; font-weight:700; color:var(--muted); }

.plan-features{ display:grid; gap:12px; margin-bottom:28px; }
.plan-features li{ display:flex; align-items:center; gap:11px; font-size:.98rem; color:var(--ink-soft); }
.plan-features li.is-off{ color:#9AAABA; }
.tick{ width:17px; height:17px; flex-shrink:0; stroke:var(--teal-dark); stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.tick-off{ stroke:#B4C2CE; }

.plan .btn{ margin-top:auto; }
.plan-note{ margin:14px 0 0; font-size:.83rem; color:var(--muted); text-align:center; }
.plans-note{
  margin:clamp(26px,3vw,36px) auto 0; max-width:66ch; text-align:center;
  font-size:.95rem; color:var(--muted);
}
.plans-note a{ color:var(--ink); font-weight:600; text-decoration:none; border-bottom:1.5px solid var(--teal); }
.plans-note a:hover{ color:var(--teal-dark); }

/* ---------- Betrieb & Betreuung (fester Jahrespreis) ---------- */
.care{
  display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:clamp(24px,3.5vw,52px); align-items:center;
  margin-top:clamp(32px,4vw,52px);
  padding:clamp(26px,3vw,42px);
  background:var(--light);
  border:1px solid var(--line);
  border-left:3px solid var(--teal);
  border-radius:var(--radius-lg);
}
.care-flag{
  display:inline-block; margin-bottom:12px;
  background:var(--navy); color:#fff;
  font-size:.76rem; font-weight:800; letter-spacing:.01em;
  padding:5px 13px; border-radius:999px;
}
.care h3{ font-size:1.5rem; margin-bottom:10px; }
.care-main > p{ color:var(--muted); max-width:40ch; }
.care .plan-price{ border-bottom:0; padding-bottom:4px; margin-bottom:20px; }
.care-list{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 24px; margin-bottom:0; }
.care-note{ margin:20px 0 0; font-size:.89rem; color:var(--muted); }

/* ==========================================================================
   WARUM (Startseite)
   ========================================================================== */
.why-grid{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); gap:clamp(32px,5vw,72px); align-items:center; }
.why-copy h2{ font-size:clamp(1.9rem,3.6vw,2.85rem); }
.why-copy .lead{ margin-bottom:38px; max-width:46ch; }
.why-list{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 32px; }
.why-item{ padding-left:18px; border-left:2px solid var(--line-strong); }
.why-item h3{ font-size:1.08rem; margin-bottom:6px; }
.why-item p{ margin:0; font-size:.97rem; color:var(--muted); }
.why-item:nth-child(1){ border-left-color:var(--teal); }
.why-item:nth-child(2){ border-left-color:var(--cyan); }
.why-item:nth-child(3){ border-left-color:var(--teal); }
.why-item:nth-child(4){ border-left-color:var(--cyan); }
.why-visual{ display:grid; place-items:center; }
.circuit-sm{ width:100%; max-width:340px; }

/* ==========================================================================
   ÜBER UNS
   ========================================================================== */
.about-grid{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(32px,5vw,64px); align-items:start; }
.about-copy h2{ font-size:clamp(1.8rem,3.4vw,2.6rem); margin-bottom:22px; }
.about-copy p{ font-size:1.06rem; color:var(--muted); max-width:60ch; }
.about-side{ display:grid; gap:var(--gap); }
.legal .container-narrow,
.about-copy{ max-width:72ch; }

.location{
  display:inline-flex; align-items:center; gap:12px;
  margin-top:10px; padding:12px 20px 12px 12px;
  background:var(--light); border:1px solid var(--line); border-radius:999px;
  font-weight:700; color:var(--ink); font-size:.95rem;
}

.team-card{ overflow:hidden; }
.team-img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-bottom:1px solid var(--line); }
.photo-placeholder{
  display:grid; place-content:center; justify-items:center; gap:8px;
  padding:24px; text-align:center;
  background:linear-gradient(150deg, #EDF3F7 0%, #E3EDF4 55%, #DCEBF0 100%);
  color:var(--muted);
}
.photo-placeholder svg{ width:56px; height:56px; stroke:var(--navy-600); stroke-width:2.4; stroke-linecap:round; fill:none; opacity:.35; }
.photo-placeholder span{ font-weight:700; color:var(--navy-600); font-size:.95rem; }
.photo-placeholder small{ font-size:.8rem; opacity:.75; }

.team-info{ padding:clamp(22px,2.4vw,28px); }
.team-info h3{ font-size:1.25rem; margin-bottom:2px; }
.team-role{ color:var(--muted); font-size:.94rem; margin-bottom:16px; }
.team-contact{ display:grid; gap:9px; }
.team-contact a{
  font-size:.94rem; font-weight:600; color:var(--ink); text-decoration:none;
  border-bottom:1.5px solid var(--teal); word-break:break-word;
}
.team-contact a:hover{ color:var(--teal-dark); }

.badges{ padding:clamp(22px,2.4vw,28px); }
.badges h3{ font-size:1.1rem; margin-bottom:18px; }
.badges-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.badge-item{
  display:grid; justify-items:center; gap:9px; text-align:center;
  padding:18px 10px; background:var(--light);
  border:1px solid var(--line); border-radius:var(--radius);
}
.badge-item svg{ width:26px; height:26px; stroke:var(--teal-dark); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.badge-item span{ font-size:.85rem; font-weight:700; color:var(--ink); }

/* ==========================================================================
   CTA-BAND (Unterseiten)
   ========================================================================== */
.cta{
  position:relative; overflow:hidden; isolation:isolate;
  background:linear-gradient(135deg, var(--navy) 0%, #0A2033 55%, #0B2A3E 100%);
  padding-block:clamp(60px,7vw,96px);
  color:rgba(255,255,255,.78);
}
.cta-bg{ position:absolute; inset:0; z-index:-1; opacity:.5; }
.cta-bg svg{ width:100%; height:100%; }
.cta .circuit-base path,.kontakt .circuit-base path{ stroke:rgba(255,255,255,.14); stroke-width:1.4; }
.cta .circuit-nodes circle,.kontakt .circuit-nodes circle{ opacity:.7; }
.cta .circuit-live path,.kontakt .circuit-live path{ stroke:var(--teal); stroke-width:2.4; opacity:.9; }
.cta-inner{ text-align:center; max-width:660px; }
.cta-inner h2{ color:#fff; font-size:clamp(1.9rem,3.6vw,2.8rem); }
.cta-inner p{ font-size:1.08rem; margin-bottom:30px; }
.cta-actions{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }

/* ==========================================================================
   KONTAKT (Startseite)
   ========================================================================== */
.kontakt{
  position:relative; overflow:hidden; isolation:isolate;
  background:linear-gradient(135deg, var(--navy) 0%, #0A2033 55%, #0B2A3E 100%);
  padding-block:clamp(64px,8vw,110px);
  color:rgba(255,255,255,.78);
}
.kontakt-head{ margin-bottom:clamp(34px,4vw,50px); }
.kontakt-head h2{ color:#fff; font-size:clamp(1.9rem,3.6vw,2.85rem); }
.kontakt-head p{ color:rgba(255,255,255,.72); }

.kontakt-grid{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(26px,4vw,52px); align-items:center; }

.kontakt-person{
  display:flex; align-items:center; gap:18px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius-lg); padding:20px 24px;
}
.kontakt-person img,.avatar-placeholder{
  width:76px; height:76px; flex-shrink:0; border-radius:50%; object-fit:cover;
  border:2px solid rgba(82,214,193,.5);
}
.avatar-placeholder{ display:grid; place-items:center; background:rgba(255,255,255,.08); }
.avatar-placeholder svg{ width:38px; height:38px; stroke:var(--teal); stroke-width:2.4; stroke-linecap:round; fill:none; opacity:.7; }
.kontakt-person strong{ display:block; color:#fff; font-size:1.12rem; }
.kontakt-person span{ font-size:.92rem; color:rgba(255,255,255,.66); }

.kontakt-details{ display:grid; gap:12px; }
/* Variante ohne Portrait: Kontaktkacheln über die volle Breite */
.kontakt-grid-wide{ grid-template-columns:1fr; }
.kontakt-grid-wide .kontakt-details{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.kontakt-details li > *{
  display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto;
  column-gap:16px; align-items:center;
  padding:16px 22px; text-decoration:none;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  transition:background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.kontakt-details a:hover{ background:rgba(255,255,255,.1); border-color:rgba(82,214,193,.55); transform:translateX(3px); }
.kontakt-icon{
  grid-row:span 2; display:grid; place-items:center;
  width:44px; height:44px; border-radius:12px; background:rgba(82,214,193,.14);
}
.kontakt-icon svg{ width:21px; height:21px; stroke:var(--teal); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.kontakt-label{ font-size:.8rem; color:rgba(255,255,255,.6); font-weight:600; }
.kontakt-value{ font-size:1.02rem; color:#fff; font-weight:700; word-break:break-word; }
.location .kontakt-icon{ width:34px; height:34px; background:rgba(82,214,193,.16); border-radius:10px; }
.location .kontakt-icon svg{ width:18px; height:18px; stroke:var(--teal-dark); }

/* ==========================================================================
   RECHTSSEITEN
   ========================================================================== */
.legal-note{
  padding:18px 22px; margin-bottom:44px;
  background:var(--light); border-left:3px solid var(--teal);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  font-size:.95rem; color:var(--ink-soft);
}
.legal-block{ padding-top:14px; margin-bottom:52px; }
.legal-block h2{
  font-size:clamp(1.5rem,2.6vw,2rem);
  padding-bottom:14px; margin-bottom:24px; border-bottom:1px solid var(--line);
}
.legal-block h3{ font-size:1.05rem; margin:30px 0 8px; }
.legal-block p{ color:var(--muted); max-width:72ch; }
.legal-block a{ color:var(--ink); text-decoration:none; border-bottom:1.5px solid var(--teal); }
.legal-block a:hover{ color:var(--teal-dark); }
.legal-ph{
  background:rgba(82,214,193,.16); color:var(--navy-600);
  padding:2px 7px; border-radius:5px; font-weight:600; font-size:.94em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  background:var(--navy); color:rgba(255,255,255,.66);
  padding-top:clamp(52px,6vw,76px); font-size:.96rem;
}
.footer-grid{
  display:grid; grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));
  gap:clamp(28px,3.5vw,48px); padding-bottom:clamp(38px,4vw,56px);
}
.footer-brand img{ height:52px; width:auto; margin-bottom:14px; }
.footer-tagline{ margin:0 0 8px; font-size:.94rem; color:var(--teal); font-weight:600; }
.footer-desc{ margin:0; font-size:.92rem; color:rgba(255,255,255,.55); max-width:34ch; }
.footer-nav h2{ font-size:.86rem; font-weight:700; color:#fff; margin-bottom:14px; letter-spacing:0; }
.footer-nav ul{ display:grid; gap:10px; }
.footer-nav a{ text-decoration:none; color:rgba(255,255,255,.66); transition:color .18s ease; word-break:break-word; }
.footer-nav a:hover{ color:var(--teal); }
.footer-contact ul{ font-size:.92rem; }

.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  display:grid; place-items:center; width:38px; height:38px;
  border:1px solid rgba(255,255,255,.16); border-radius:10px;
  color:rgba(255,255,255,.66);
  transition:color .18s ease, border-color .18s ease, background-color .18s ease;
}
.footer-social a:hover{ color:var(--teal); border-color:var(--teal); background:rgba(82,214,193,.1); }
.footer-social svg{ width:18px; height:18px; }

.footer-bottom{
  display:flex; flex-wrap:wrap; gap:8px 20px; justify-content:space-between; align-items:center;
  padding-block:22px; border-top:1px solid rgba(255,255,255,.1);
}
.footer-bottom p{ margin:0; font-size:.88rem; color:rgba(255,255,255,.48); }
.footer-made{ color:rgba(255,255,255,.4); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top{
  position:fixed; right:22px; bottom:22px; z-index:80;
  width:48px; height:48px; display:grid; place-items:center;
  background:var(--navy); color:#fff; border:0; border-radius:50%;
  box-shadow:var(--shadow-md); cursor:pointer;
  opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.back-to-top.is-visible{ opacity:1; transform:none; pointer-events:auto; }
.back-to-top:hover{ background:var(--teal); color:var(--navy); }
.back-to-top svg{ width:20px; height:20px; }

/* ==========================================================================
   SCROLL-REVEAL
   ========================================================================== */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible{ opacity:1; transform:none; }
.cards-3 .reveal:nth-child(2),
.projects .reveal:nth-child(2),
.plans .reveal:nth-child(2){ transition-delay:.08s; }
.cards-3 .reveal:nth-child(3),
.projects .reveal:nth-child(3){ transition-delay:.16s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1080px){
  .header-cta{ display:none; }
  .burger{ display:grid; }

  .nav{
    position:fixed; z-index:95; top:0; right:0; bottom:0;
    width:min(340px,86vw);
    flex-direction:column; align-items:stretch; justify-content:flex-start;
    gap:0; margin:0; padding:calc(var(--header-h) + 18px) 24px 32px;
    background:var(--white); box-shadow:-20px 0 60px rgba(7,21,37,.16);
    transform:translateX(102%); transition:transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y:auto;
  }
  .nav-open .nav{ transform:none; }
  .nav-list{ flex-direction:column; align-items:stretch; gap:2px; }
  .nav-link{ padding:14px 12px; font-size:1.02rem; border-radius:10px; }
  .nav-link.is-active{ background:var(--light); }
  .nav-link.is-active::after{ display:none; }
  .nav-cta{ display:flex; margin-top:20px; }
  .nav-link-home{ display:flex; }
  .nav-close{ display:flex; }

  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ min-height:280px; opacity:.85; }
  .hero-visual .circuit{ inset:0 -12%; width:124%; height:100%; }

  .why-grid{ grid-template-columns:1fr; }
  .why-visual{ display:none; }
  .about-grid{ grid-template-columns:1fr; }
  .about-side{ grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .kontakt-grid{ grid-template-columns:1fr; }
  .kontakt-grid-wide .kontakt-details{ grid-template-columns:repeat(2,minmax(0,1fr)); }

  .detail-blocks{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-block-highlight{ grid-column:span 2; }

  .footer-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:900px){
  .cards-3,.projects,.cards-2x2{ grid-template-columns:1fr; max-width:560px; margin-inline:auto; }
  .cards-2x2 .reveal:nth-child(3),.cards-2x2 .reveal:nth-child(4){ transition-delay:0s; }
  .projects-duo{ grid-template-columns:1fr; }
  .coverflow{ width:72%; }
  .plans-duo{ grid-template-columns:1fr; max-width:440px; }
  .plans{ grid-template-columns:1fr; max-width:440px; margin-inline:auto; }
  .care{ grid-template-columns:1fr; max-width:560px; margin-inline:auto; text-align:left; }
  .split{ grid-template-columns:1fr; }
  .cards-3 .reveal:nth-child(2),.cards-3 .reveal:nth-child(3),
  .projects .reveal:nth-child(2),.projects .reveal:nth-child(3),
  .plans .reveal:nth-child(2){ transition-delay:0s; }
}

@media (max-width:680px){
  body{ font-size:16px; }
  :root{ --header-h:70px; }
  .brand img{ height:38px; }
  .site-header.is-scrolled .brand img{ height:34px; }

  .hero-visual{ min-height:230px; }
  .hero-actions .btn{ flex:1 1 100%; }
  .hero-stats{ gap:18px 26px; }
  .hero-stats dd{ font-size:1.5rem; }

  .detail-blocks{ grid-template-columns:1fr; }
  .detail-block-highlight{ grid-column:auto; }
  .about-side{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
  .footer-brand img{ height:46px; }
  .footer-bottom{ justify-content:flex-start; }
  .cta-actions .btn{ flex:1 1 100%; }
  .kontakt-details li > *{ padding:14px 18px; column-gap:13px; }
  .care-list{ grid-template-columns:1fr; }
  .care .btn{ width:100%; }
  .kontakt-grid-wide .kontakt-details{ grid-template-columns:1fr; }
  .back-to-top{ right:16px; bottom:16px; }
}

/* ==========================================================================
   REDUZIERTE BEWEGUNG & DRUCK
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .reveal{ opacity:1; transform:none; }
  .circuit-live{ display:none; }

  /* Coverflow steht still, bleibt aber als gestapelte Ansicht lesbar */
  .cf-shot{ animation-name:none !important; }
  .cf-shot:nth-child(1){ transform:rotateY(0deg); z-index:3; }
  .cf-shot:nth-child(2){ transform:rotateY(-50deg) translateZ(-130px) translateX(45%); opacity:.45; }
  .cf-shot:nth-child(3){ transform:rotateY(50deg) translateZ(-130px) translateX(-45%); opacity:.45; }
}

@media print{
  .site-header,.cta-bg,.hero-visual,.why-visual,.burger,.back-to-top,.cta{ display:none !important; }
  body{ color:#000; }
}


/* ==========================================================================
   ADRESSE, KARTE, E-MAIL-LINKS
   ========================================================================== */
address{ font-style:normal; }
[data-mail]{ cursor:pointer; }
.footer-contact address{
  margin-bottom:14px; font-size:.92rem; color:rgba(255,255,255,.66); line-height:1.7;
}
.kontakt-noscript{ margin:14px 0 0; font-size:.92rem; color:rgba(255,255,255,.7); }

.plans-note-link{
  color:var(--ink); font-weight:600; text-decoration:none;
  border-bottom:1.5px solid var(--teal); background:none; cursor:pointer;
}
.plans-note-link:hover{ color:var(--teal-dark); }


/* ---------- Rechtsseiten: Adressblöcke ---------- */
.legal-block address{ color:var(--muted); line-height:1.8; margin-bottom:1em; }


/* ==========================================================================
   MICRO-SERVICES  (in Vorbereitung)
   ========================================================================== */
@media (min-width:901px){
  .cards-2x2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.cards-2x2 .reveal:nth-child(3){ transition-delay:.08s; }
.cards-2x2 .reveal:nth-child(4){ transition-delay:.16s; }

.service-soon{
  border-style:dashed;
  background:linear-gradient(160deg, var(--white) 0%, #F6FAFB 100%);
}
.service-soon h3{ color:var(--navy-600); }
.service-soon .service-mark{
  background:linear-gradient(140deg, rgba(72,174,218,.14), rgba(7,21,37,.06));
}
.card-flag-soon{ background:var(--cyan); color:#fff; }

.soon-badge{
  display:inline-flex; align-items:center; gap:9px;
  margin-bottom:16px; padding:6px 15px 6px 11px;
  background:var(--white); border:1px solid var(--line); border-radius:999px;
  font-size:.85rem; font-weight:700; color:var(--navy-600);
  box-shadow:var(--shadow-sm);
}
.soon-dot{
  width:8px; height:8px; border-radius:50%; background:var(--cyan);
  box-shadow:0 0 0 4px rgba(72,174,218,.2);
}


/* ==========================================================================
   TOOLTIP — löst die E-Mail-Adresse beim Mouseover auf.
   data-tip wird erst per JS gesetzt, im Quelltext steht die Adresse nicht.
   ========================================================================== */
[data-tip]{ position:relative; }
[data-tip]::after{
  content:attr(data-tip);
  position:absolute; left:50%; bottom:calc(100% + 10px);
  transform:translateX(-50%) translateY(5px);
  padding:8px 14px; border-radius:9px;
  background:var(--navy); color:#fff;
  font-size:.83rem; font-weight:600; letter-spacing:0; line-height:1.3;
  white-space:nowrap;
  box-shadow:0 10px 28px rgba(7,21,37,.28);
  opacity:0; pointer-events:none; z-index:120;
  transition:opacity .16s ease, transform .16s ease;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after{ opacity:1; transform:translateX(-50%) translateY(0); }

/* Auf dunklen Flächen umgekehrt, damit der Kontrast stimmt */
.site-footer [data-tip]::after,
.kontakt [data-tip]::after{ background:#fff; color:var(--navy); }

@media (max-width:680px){
  [data-tip]::after{ font-size:.78rem; padding:7px 11px; }
}
