/* =======================================================================
   A-PHYS Ingenieurgesellschaft mbH – Light Premium Redesign
   Texte & Bilder unverändert · Nur Design geändert
   ======================================================================= */

:root {
  --dark-950: #060c11;
  --dark-900: #0a1520;
  --dark-800: #0d1f2d;
  --dark-700: #0f2b3e;
  --accent:   #0bb4cb;
  --accent-d: #0894a8;
  --white:    #ffffff;
  --w90:      rgba(255,255,255,.90);
  --w70:      rgba(255,255,255,.70);
  --w40:      rgba(255,255,255,.40);
  --w15:      rgba(255,255,255,.15);
  --w08:      rgba(255,255,255,.08);
  --ink:      #16252c;
  --ink-soft: #4d6474;
  --bg:       #f3f7f9;
  --bg-white: #ffffff;
  --bg-teal:  #eef7f9;
  --border:   #dde8ed;
  --r-card:   18px;
  --r-btn:    999px;
  --maxw:     1140px;
  --ease:     .24s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-white);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Automatische Silbentrennung für lange deutsche Komposita */
h1, h2, h3, h4, p, li, td, th, a,
.page-lead, .breadcrumb, .page-hero h1 {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 100px 0; }

h1, h2, h3 { font-weight: 700; line-height: 1.14; letter-spacing: -.022em; }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent-d); }
.ac { color: var(--accent); }


/* ───────────────────────────── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 36px -10px rgba(11,180,203,.42);
}
.btn-accent:hover { background: var(--accent-d); box-shadow: 0 18px 40px -10px rgba(11,180,203,.52); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.45);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }


/* ───────────────────────────── HEADER ──────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
header.scrolled { box-shadow: 0 4px 24px rgba(11,180,203,.10); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}
/* Logo zeigt Originalfarben – kein Filter */
.logo-link img { height: 44px; width: auto; }

.menu { display: flex; gap: 34px; align-items: center; }
.menu > a, .nav-drop > a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--ease);
}
.menu > a:hover, .nav-drop > a:hover { color: var(--accent-d); }
.nav-cta { padding: 9px 20px; font-size: .85rem; }

/* Dropdown */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a::after { content: ' ▾'; font-size: .7rem; opacity: .5; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 0;
  min-width: 230px;
  box-shadow: 0 12px 40px rgba(22,37,44,.12);
  z-index: 300;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  padding: 9px 20px;
  font-size: .86rem;
  color: var(--ink-soft);
  transition: color var(--ease), background var(--ease);
}
.nav-drop-menu a:hover { color: var(--accent-d); background: var(--bg); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .32s var(--ease), opacity .32s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ───────────────────────────── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg,
      rgba(6,12,17,.94)   0%,
      rgba(9,30,48,.82)  48%,
      rgba(11,180,203,.14) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }

.hero-content { max-width: 820px; padding: 90px 0 100px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--w90);
  background: var(--w08);
  border: 1px solid var(--w15);
  padding: 8px 18px;
  border-radius: var(--r-btn);
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(11,180,203,.28);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  margin-bottom: 22px;
  text-shadow: 0 2px 32px rgba(0,0,0,.28);
}
.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.80);
  max-width: 640px;
  margin-bottom: 38px;
  line-height: 1.78;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--w40);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-hint span {
  display: block;
  width: 3px;
  height: 7px;
  background: var(--w70);
  border-radius: 2px;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(0);   opacity: 1; }
  75%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}


/* ───────────────────────────── WILLKOMMEN ──────────────────────────── */
.welcome { background: var(--bg-white); }
.welcome .eyebrow { display: block; }
.welcome h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--dark-800);
  margin-bottom: 0;
}
.welcome h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 16px;
  margin-bottom: 32px;
}
.welcome-body { max-width: 840px; }
.welcome-body p {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.8;
}
.welcome-body p:last-child { margin-bottom: 0; }
.welcome-body strong { color: var(--dark-800); font-weight: 600; }


/* ───────────────────────────── SLOGAN ──────────────────────────────── */
.slogan {
  background: var(--bg-teal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 76px 0;
  text-align: center;
}
.slogan-inner { max-width: 860px; margin: 0 auto; }
.slogan-rule {
  width: 52px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 30px;
}
.slogan-text {
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
}
.slogan-text .ac { color: var(--accent-d); }


/* ───────────────────────────── PRESSE ──────────────────────────────── */
.press { background: var(--bg); }
.press h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  color: var(--dark-800);
  margin-bottom: 10px;
}
.press-intro {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.01rem;
  max-width: 560px;
  margin: 0 auto 50px;
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.press-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 24px;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.press-card:hover {
  box-shadow: 0 20px 56px -18px rgba(11,180,203,.18);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.press-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(11,180,203,.10);
  color: var(--accent-d);
  display: grid;
  place-items: center;
}
.press-icon svg { width: 22px; height: 22px; }
.press-body h3 {
  font-size: .98rem;
  color: var(--dark-800);
  margin-bottom: 7px;
  font-weight: 600;
  line-height: 1.4;
}
.press-body p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }
.press-go { font-size: .9rem; font-weight: 600; color: var(--accent-d); }


/* ───────────────────────────── GESCHÄFTSFÜHRER ─────────────────────── */
.gf { background: var(--bg-white); }
.gf-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg-teal);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 52px);
}
.gf-avatar {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: .04em;
}
.gf-body .eyebrow { margin-bottom: 10px; }
.gf-body h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 16px;
}
.gf-body p {
  color: var(--ink-soft);
  font-size: 1.01rem;
  line-height: 1.8;
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--accent-d);
  font-weight: 600;
  font-size: .9rem;
  transition: opacity var(--ease);
}
.linkedin-link:hover { opacity: .78; }


/* ───────────────────────────── QUALIFIKATIONEN ─────────────────────── */
.quali {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}
.quali-label {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.quali-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 56px;
}
.quali-logos img {
  max-height: 80px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: .88;
  transition: opacity var(--ease), transform var(--ease);
}
.quali-logos img:hover { opacity: 1; transform: translateY(-3px); }


/* ───────────────────────────── KONTAKT ─────────────────────────────── */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-info .eyebrow { display: block; }
.contact-info h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  color: var(--dark-800);
  margin-bottom: 6px;
}
.contact-lead { color: var(--ink-soft); margin-bottom: 32px; font-size: 1.02rem; }

.contact-list { list-style: none; display: grid; gap: 18px; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(11,180,203,.10);
  color: var(--accent-d);
  display: grid;
  place-items: center;
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.ci-val { display: block; font-weight: 500; font-size: 1.01rem; color: var(--dark-800); }
.ci-val a { color: var(--dark-800); transition: color var(--ease); }
.ci-val a:hover { color: var(--accent-d); }

.callout {
  background: var(--bg-teal);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: 26px 30px;
  font-size: .96rem;
  line-height: 1.6;
}
.callout strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.callout-phone {
  display: inline-block;
  margin-top: 12px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .93rem;
  padding: 10px 24px;
  border-radius: var(--r-btn);
  transition: background var(--ease), transform var(--ease);
}
.callout-phone:hover { background: var(--accent-d); transform: translateY(-1px); }

.contact-media img {
  width: 100%;
  border-radius: var(--r-card);
  box-shadow: 0 28px 72px -24px rgba(11,180,203,.20);
}


/* ───────────────────────────── FOOTER ──────────────────────────────── */
footer {
  background: var(--dark-950);
  color: var(--w40);
  padding: 58px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  margin-bottom: 38px;
  align-items: start;
}
.foot-logo {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.foot-logo span { color: var(--accent); font-style: italic; }
footer p { font-size: .88rem; max-width: 340px; line-height: 1.65; }
footer h4 {
  color: var(--w70);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
footer ul { list-style: none; display: grid; gap: 10px; }
footer ul li { font-size: .87rem; }
footer ul a { color: var(--w40); transition: color var(--ease); }
footer ul a:hover { color: var(--accent); }

.foot-bottom {
  border-top: 1px solid var(--w08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .81rem;
}
.foot-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.foot-bottom a:hover { color: var(--accent); }

/* ═══════════════════════════ LEGAL CONTENT ════════════════════════ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--ink);
}
.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.5rem 0 .75rem;
  color: var(--ink-head);
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin: .5rem 0 1rem 1.4rem; }
.legal-content li { margin-bottom: .4rem; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { color: var(--accent-d); }


/* ═══════════════════════════ SUBPAGE HERO ══════════════════════════ */
.page-hero {
  background: linear-gradient(150deg, var(--bg-teal) 0%, var(--bg-white) 100%);
  border-bottom: 1px solid var(--border);
  padding: 100px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(11,180,203,.07);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
.page-hero .breadcrumb a { color: var(--ink-soft); }
.page-hero .breadcrumb a:hover { color: var(--accent-d); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink); margin-bottom: 18px; }
.page-hero .page-lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ═══════════════════════ LEISTUNGEN OVERVIEW ════════════════════════ */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.leistungen-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.leistungen-card:hover {
  box-shadow: 0 12px 40px rgba(11,180,203,.14);
  transform: translateY(-5px);
  border-color: var(--accent);
}
.leistungen-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.lc-body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.lc-icon { font-size: 1.6rem; margin-bottom: 12px; }
.lc-body h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 10px; font-weight: 600; }
.lc-body p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.lc-cta { display: inline-block; margin-top: 18px; font-size: .85rem; font-weight: 600; color: var(--accent-d); }
.lc-cta:hover { text-decoration: underline; }

/* ══════════════════════ SERVICE DETAIL PAGE ═════════════════════════ */
.service-intro {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}
.service-intro p { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75; }
.service-img-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--r-card);
  margin-bottom: 64px;
  display: block;
}
.service-sections { display: flex; flex-direction: column; gap: 0; }
.service-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.service-section:first-child { border-top: none; padding-top: 0; }
.service-section.rev { direction: rtl; }
.service-section.rev > * { direction: ltr; }
.service-section img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--r-card); }
.service-section.solo { grid-template-columns: 1fr; max-width: 760px; }
.service-section.solo.rev { direction: ltr; }
.ss-text h2 { font-size: 1.35rem; color: var(--ink); margin-bottom: 14px; font-weight: 600; }
.ss-text p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 0; }
.services-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.services-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.services-list li:last-child { border-bottom: none; }
.services-list li::before { content: '→'; color: var(--accent-d); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.services-list strong { color: var(--ink); }

/* Accent band on service pages – light teal */
.service-accent {
  background: var(--bg-teal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  margin: 64px 0 0;
}
.service-accent h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 24px; }
.service-accent p { color: var(--ink-soft); line-height: 1.75; max-width: 720px; }
.service-accent .services-list li { border-color: var(--border); color: var(--ink-soft); }
.service-accent .services-list strong { color: var(--ink); }

/* CTA band – accent colour for visual contrast */
.cta-band {
  background: var(--accent);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 32px; }
.cta-band .btn { margin: 0 8px; }
/* Ghost button inside cyan CTA band stays white */
.cta-band .btn-ghost {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.50);
  color: var(--white);
}
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.28); }

/* ═══════════════════════ REFERENZEN OVERVIEW ════════════════════════ */
.ref-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.ref-cat-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.ref-cat-card:hover {
  box-shadow: 0 12px 40px rgba(11,180,203,.14);
  transform: translateY(-5px);
  border-color: var(--accent);
}
.ref-cat-card img { width: 100%; height: 220px; object-fit: cover; }
.ref-cat-body { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; }
.ref-cat-body h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.ref-cat-body p { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.ref-cat-cta { margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--accent-d); }

/* Reference project grid */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.ref-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.ref-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ref-card-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.ref-card-body h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.ref-type { font-size: .8rem; color: var(--accent-d); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.ref-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ref-tag {
  background: rgba(11,180,203,.10);
  color: var(--accent-d);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.ref-card-body p { font-size: .88rem; color: var(--ink-soft); line-height: 1.65; flex: 1; }

/* ═══════════════════════ UNTERNEHMEN PAGE ═══════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
  padding: 56px 0;
}
.about-img { border-radius: var(--r-card); overflow: hidden; }
.about-img img { width: 100%; height: 420px; object-fit: cover; object-position: top; }
.about-text h2 { font-size: 1.6rem; color: var(--ink); margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; }
.philo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.philo-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.philo-card h4 { font-size: .95rem; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.philo-card p { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }

/* ═══════════════════════ KOMPETENZEN PAGE ═══════════════════════════ */
.kompetenz-list { display: flex; flex-direction: column; gap: 20px; margin-top: 48px; }
.kompetenz-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.kompetenz-icon {
  width: 52px;
  height: 52px;
  background: rgba(11,180,203,.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-d);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.kompetenz-icon svg { width: 24px; height: 24px; }
.kompetenz-body h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.kompetenz-body ul { padding-left: 1.2rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.kompetenz-logo img { max-height: 48px; max-width: 160px; margin-top: 12px; }

/* foot-col for 3-column footer */
.foot-grid { grid-template-columns: 1.5fr 1fr 1fr; }

/* ───────────────────────────── REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .72s ease, transform .72s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Active nav link (current page) */
.nav-active { color: var(--accent-d) !important; font-weight: 600; }


/* ───────────────────────────── RESPONSIVE ──────────────────────────── */
/* ═══════════════════════ LEISTUNGEN TABLE ══════════════════════════ */
.leistungen-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: .95rem;
}
.leistungen-table tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.leistungen-table tr:last-child { border-bottom: none; }
.leistungen-table tr:hover { background: rgba(11,180,203,.04); }
.leistungen-table td {
  padding: 16px 12px;
  vertical-align: top;
  line-height: 1.65;
}
.leistungen-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 36%;
  padding-right: 28px;
  white-space: nowrap;
}
.leistungen-table td:last-child { color: var(--ink-soft); }
.service-accent .leistungen-table tr { border-color: var(--border); }


/* ═══════════════════════ RESPONSIVE ════════════════════════════════ */
body { overflow-x: hidden; }

/* ── Tablet & kleines Desktop: ≤ 860px ────────────────────────────── */
@media (max-width: 860px) {
  section                  { padding: 80px 0; }
  .press-grid              { grid-template-columns: 1fr; }
  .contact-grid            { grid-template-columns: 1fr; gap: 36px; }
  .contact-media           { order: -1; }
  .foot-grid               { grid-template-columns: 1fr; gap: 32px; }
  .gf-card                 { flex-direction: column; gap: 22px; }
  .leistungen-grid         { grid-template-columns: repeat(2, 1fr); }
  .ref-cat-grid            { grid-template-columns: 1fr; }
  .ref-grid                { grid-template-columns: 1fr; }
  .service-section         { grid-template-columns: 1fr; gap: 28px; }
  .service-section.rev     { direction: ltr; }
  .service-section img     { height: 260px; }
  .about-grid              { grid-template-columns: 1fr; gap: 36px; }
  .about-img img           { height: 300px; }
  .philo-grid              { grid-template-columns: 1fr; }
  .kompetenz-card          { flex-direction: column; gap: 16px; }
  .leistungen-table td:first-child { width: 40%; white-space: normal; }
  /* Bilder in Accent-Sektionen mit inline max-height überschreiben */
  .service-accent img      { max-height: 260px !important; }

  /* Mobile Navigation ab Tablet */
  .burger { display: flex; }
  .menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: 82%;
    max-width: 300px;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 72px 24px 40px;
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.4,0,.2,1);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(22,37,44,.08);
    z-index: 150;
    overflow-y: auto;
  }
  .menu.open                { transform: none; }
  .menu > a                 { color: var(--ink); font-size: 1rem; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu > a:last-child      { border-bottom: none; }
  .menu .nav-drop           { flex-direction: column; align-items: flex-start; width: 100%; border-bottom: 1px solid var(--border); }
  .menu .nav-drop > a       { color: var(--ink); font-size: 1rem; padding: 12px 0; border-bottom: none; width: 100%; }
  .menu .nav-drop > a::after { display: none; }
  .menu .nav-drop-menu {
    position: static;
    display: block;
    transform: none;
    left: auto;
    top: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent);
    border-radius: 0;
    min-width: 0;
    padding: 4px 0 10px 14px;
    background: transparent;
    margin-bottom: 8px;
  }
  .menu .nav-drop-menu a    { font-size: .9rem; color: var(--ink-soft); padding: 5px 0; }
  .menu .nav-drop-menu a:hover { background: transparent; color: var(--accent-d); }
  .menu .nav-cta            { align-self: flex-start; margin-top: 16px; }
}

/* ── Mobil: ≤ 640px ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  section                  { padding: 68px 0; }
  .slogan                  { padding: 56px 0; }
  .quali                   { padding: 44px 0; }
  .wrap                    { padding: 0 18px; }
  .hero-content            { padding: 70px 0 80px; }
  .quali-logos             { gap: 24px 36px; }
  .foot-grid               { gap: 28px; }
  .service-img-hero        { max-height: 220px; margin-bottom: 36px; }
  .service-section img     { height: 200px; }
  .about-img img           { height: 220px; }
  .service-accent img      { max-height: 220px !important; }
  .page-hero               { padding: 72px 0 48px; }
  .page-hero h1            { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .press-card              { flex-direction: column; gap: 14px; }
  .philo-grid              { grid-template-columns: 1fr; margin-top: 28px; }
}

/* ── Kleines Mobil: ≤ 560px ────────────────────────────────────────── */
@media (max-width: 560px) {
  .leistungen-grid         { grid-template-columns: 1fr; }
  /* Leistungen-Tabelle → Card-Stack auf kleinen Screens */
  .leistungen-table,
  .leistungen-table tbody,
  .leistungen-table tr,
  .leistungen-table td     { display: block; width: 100%; }
  .leistungen-table tr {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--bg-white);
  }
  .leistungen-table tr:last-child { border-bottom: 1px solid var(--border); }
  .leistungen-table td     { padding: 3px 0; border: none; }
  .leistungen-table td:first-child { padding-bottom: 6px; width: 100%; white-space: normal; }
  .service-accent .leistungen-table tr { background: rgba(255,255,255,.7); }
}
