/* IBM Plex — selbst gehostet (latin) */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ibm-plex-sans-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ibm-plex-sans-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/ibm-plex-sans-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/ibm-plex-sans-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/ibm-plex-mono-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/ibm-plex-mono-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* Inter — selbst gehostet (latin), ersetzt Google Fonts */
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/inter-300.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/inter-900.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* ─── Variables ─────────────────────────────────────────────── */
:root {
  color-scheme:  dark;
  --bg:          #0b0a09;
  --bg-surface:  #141210;
  --bg-hover:    #1c1917;
  --text:        #f2efeb;
  --text-muted:  #857c73;
  --text-subtle: #3d3a37;
  --accent:      #e2620a;
  --accent-dim:  rgba(226, 98, 10, 0.13);
  --accent-glow: rgba(226, 98, 10, 0.26);
  --accent-bright:#ff7a1f;
  --border:      #241f1b;
  --border-hover:#352d27;
  --nav-bg:      rgba(11, 10, 9, 0.92);
  --nav-bg-solid:rgba(11, 10, 9, 0.97);
  --radius:      16px;
  --radius-sm:   8px;
  --font:        'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1200px;
  --transition:  0.25s ease;
}

/* Light theme — aktiv per [data-theme="light"] (JS setzt es aus
   localStorage bzw. prefers-color-scheme). Warmes Off-White passend
   zum warmen Dunkelton, Akzent leicht abgedunkelt für Kontrast. */
:root[data-theme="light"] {
  color-scheme:  light;
  --bg:          #f7f4f0;
  --bg-surface:  #ffffff;
  --bg-hover:    #efe9e2;
  --text:        #191411;
  --text-muted:  #5f564d;
  --text-subtle: #c9beb1;
  --accent:      #b64a05;
  --accent-dim:  rgba(182, 74, 5, 0.10);
  --accent-glow: rgba(182, 74, 5, 0.20);
  --accent-bright:#cf560a;
  --border:      #e6ded4;
  --border-hover:#d4c9bb;
  --nav-bg:      rgba(247, 244, 240, 0.85);
  --nav-bg-solid:rgba(247, 244, 240, 0.97);
}

/* Farbwechsel weich, aber nicht bei Nutzer-Präferenz "weniger Bewegung" */
body { transition: background-color var(--transition), color var(--transition); }

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(44px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; }
p  { color: var(--text-muted); font-size: 17px; }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Layout helpers ────────────────────────────────────────── */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section    { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), border-bottom var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-logo span { color: var(--text); }
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14,165,164,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-label { margin-bottom: 24px; }
.hero-title {
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--accent); }
.hero-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  display: block;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero-shot {
  position: relative;
  z-index: 0;
  margin: 0;
  width: min(420px, 100%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
}
/* Die "In Ihrem Haus"-Box überlappt die Bildunterkante. */
.hero-visual .perimeter { margin-top: -96px; }
.hero-visual .perimeter-cap {
  background: var(--nav-bg-solid);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.hero-visual .perimeter-frame {
  background: var(--nav-bg-solid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
}
.hero-photo-wrap {
  position: relative;
  z-index: 1;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, transparent 180deg, var(--accent) 360deg);
  animation: spin 12s linear infinite;
  opacity: 0.5;
}
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-photo {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
  border: 3px solid var(--bg);
  filter: grayscale(20%) contrast(1.05);
}
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,164,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ─── Section headers ────────────────────────────────────────── */
.section-header { margin-bottom: 64px; }
.section-header .label { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 20px; }
.section-header p { max-width: 560px; font-size: 18px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ─── Services ───────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  flex-shrink: 0;
}
.contact-item-icon {
  color: var(--accent);
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ─── About ──────────────────────────────────────────────────── */
.about-bg { background: var(--bg-surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  filter: grayscale(15%) contrast(1.05);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  line-height: 1.3;
  text-align: center;
  min-width: 120px;
}
.about-badge strong { display: block; font-size: 28px; }
.about-content .label { margin-bottom: 16px; }
.about-content h2 { margin-bottom: 8px; }
.about-title-sub {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 28px;
}
.about-bio {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 40px;
}
.credential {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Blog list ──────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.post-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.post-card p {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.post-date { font-size: 12px; color: var(--text-subtle); }
.post-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.post-card:hover .post-link { gap: 8px; }

/* ─── Single post ────────────────────────────────────────────── */
.post-hero {
  padding: 160px 0 80px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.post-hero h1 { max-width: 800px; margin-bottom: 24px; }
.post-hero-lead { max-width: 680px; font-size: 20px; }
.post-cover {
  margin: 64px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 500px;
}
.post-cover img { width: 100%; object-fit: cover; }
.post-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 80px 32px;
}
.post-content h2 { font-size: 32px; margin: 48px 0 20px; }
.post-content h3 { font-size: 24px; margin: 36px 0 16px; }
.post-content p  { font-size: 17px; line-height: 1.8; color: var(--text-muted); margin-bottom: 24px; }
.post-content ul, .post-content ol {
  margin: 0 0 24px 24px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}
.post-content li { margin-bottom: 8px; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content strong { color: var(--text); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
}
.post-content code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Fira Code', monospace;
}
.post-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-content pre code { background: none; border: none; padding: 0; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  margin-bottom: 48px;
}
.post-back:hover { color: var(--accent); }

/* ─── Blog listing page ──────────────────────────────────────── */
.blog-hero {
  padding: 160px 0 80px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 { margin-bottom: 20px; }
.blog-hero p { font-size: 20px; max-width: 560px; }
.blog-page-content { padding: 80px 0; }

/* ─── Contact ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info .label { margin-bottom: 16px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info > p { font-size: 18px; margin-bottom: 48px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
}
.contact-item a {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--accent); }
.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 400px;
}
.map-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  line-height: 1;
  color: var(--text);
  background: var(--nav-bg-solid);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.map-credit a { color: var(--accent); }
.map-credit a:hover { text-decoration: underline; }

/* ─── Infrastruktur-Band (Im eigenen Haus) ──────────────────── */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.infra-shot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.infra-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.03);
  transition: filter var(--transition), transform var(--transition);
}
.infra-shot:hover img { filter: grayscale(0%) contrast(1.06); transform: scale(1.02); }
.infra-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
}
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.1);
  transition: filter var(--transition);
}
.contact-map:hover img { filter: grayscale(40%) contrast(1.1); }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 13px; color: var(--text-subtle); }
.footer-bottom a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--text); }
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─── Fade-in animation ──────────────────────────────────────── */
/* Standard: sichtbar. Der Effekt gilt nur, wenn JS aktiv ist
   (html.js) — sonst bliebe ohne JavaScript die halbe Seite unsichtbar. */
.fade-up { opacity: 1; }
html.js .fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
html.js .fade-up:nth-child(2) { transition-delay: 0.1s; }
html.js .fade-up:nth-child(3) { transition-delay: 0.2s; }
html.js .fade-up:nth-child(4) { transition-delay: 0.3s; }
html.js .fade-up:nth-child(5) { transition-delay: 0.4s; }
html.js .fade-up:nth-child(6) { transition-delay: 0.5s; }

/* Nutzer mit "weniger Bewegung": kein Einblenden, sofort sichtbar. */
@media (prefers-reduced-motion: reduce) {
  html.js .fade-up { opacity: 1; transform: none; transition: none; }
  body { transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Blog listing: featured post ───────────────────────────── */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.post-card-featured .post-card-image {
  aspect-ratio: auto;
  min-height: 320px;
}
.post-card-featured .post-card-body {
  padding: 48px;
  justify-content: center;
}
.post-card-featured h3 { font-size: 28px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .blog-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
  .hero-photo     { width: 320px; height: 320px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section   { padding: 80px 0; }

  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .about-grid { gap: 48px; }
  /* Auf Mobil zuerst die Headline, dann die "In Ihrem Haus"-Box. */
  .hero-content { order: 0; }
  .hero-visual  { order: 1; }
  .hero-shot    { width: min(340px, 92%); }
  .hero-visual .perimeter { margin-top: -72px; }
  .hero-photo { width: 260px; height: 260px; }
  .hero-glow  { width: 320px; height: 320px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }

  .about-badge { right: 0; bottom: -10px; }

  .services-grid  { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .infra-grid     { grid-template-columns: 1fr; gap: 16px; }
  .post-card-featured { grid-template-columns: 1fr; }
  .post-card-featured .post-card-body { padding: 28px; }

  .footer-grid    { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom  { flex-direction: column; gap: 16px; text-align: center; }

  .nav-links      { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg-solid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { font-size: 18px; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}


/* ─── Referenz-Zeile ────────────────────────────────────────── */
.ref-logos {
  list-style: none;
  margin: 0 0 56px;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ref-logos li {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ref-logos { gap: 10px 20px; justify-content: flex-start; }
  .ref-logos li { font-size: 12.5px; }
}


/* ─── Prüfsteine ────────────────────────────────────────────── */
.checks {
  list-style: none;
  counter-reset: check;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px 40px;
}
.checks li {
  counter-increment: check;
  position: relative;
  padding-left: 52px;
}
.checks li::before {
  content: counter(check, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.checks b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}
.checks span {
  display: block;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .checks { gap: 24px; }
  .checks li { padding-left: 40px; }
}


/* ─── 4 Leistungen: 2x2 ─────────────────────────────────────── */
.services-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .services-grid.grid-4 { grid-template-columns: 1fr; }
}


/* ─── Sprachumschalter ──────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lang-switch a { color: var(--text-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.lang-active { color: var(--accent); }
.lang-switch span { color: var(--border); }


/* ─── Theme-Umschalter (Hell/Dunkel) ────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }


/* ─── Hero-Perimeter (ersetzt das zweite Portraet) ──────────── */
.perimeter {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.perimeter-cap {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.perimeter-frame { position: relative; padding: 34px 46px; }
.perimeter-frame::before,
.perimeter-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  border: 2.5px solid var(--border-hover);
}
.perimeter-frame::before { left: 0;  border-right: none; border-radius: 16px 0 0 16px; }
.perimeter-frame::after  { right: 0; border-left: none;  border-radius: 0 16px 16px 0; }
.perimeter-frame ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.perimeter-frame li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.perimeter-frame li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}
.perimeter-out {
  margin: 0;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .perimeter-frame { padding: 28px 34px; }
  .perimeter-frame li { font-size: 15.5px; }
}


/* ─── About: Foto folgt dem Text statt oben/unten Luft zu lassen ─ */
@media (min-width: 901px) {
  .about-grid { align-items: start; }
  .about-photo-wrap { position: sticky; top: 104px; }
}
.about-photo { width: 100%; height: auto; }
.about-credentials { gap: 8px; }


/* ─── Referenz-Karten ───────────────────────────────────────── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ref-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}
.ref-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.ref-card-image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-hover); }
.ref-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.ref-card-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.ref-card h3 { font-size: 18px; margin: 2px 0 0; }
.ref-card-client { font-size: 14px; color: var(--text-muted); margin: 0; }
.ref-card p:last-child { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 0; }
@media (max-width: 1000px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ref-grid { grid-template-columns: 1fr; } }

.infra-grid.infra-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .infra-grid.infra-3 { grid-template-columns: 1fr; } }

/* ─── Bild-Kennzeichnung im Footer ──────────────────────────── */
.footer-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-subtle);
}

/* ─── Assistent (kuratierter Fragenkatalog) ─────────────────── */
#sa-root { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-size: 15px; }
#sa-launch {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; border: 0;
  font: inherit; font-weight: 600;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
#sa-launch:hover { background: var(--accent-bright); }
.sa-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .9; }
#sa-panel {
  position: absolute; right: 0; bottom: 0;
  width: min(400px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: var(--bg-surface); color: var(--text);
  border: 1px solid var(--border-hover); border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,.4); overflow: hidden;
}
.sa-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.sa-head strong { display: block; font-size: 15px; }
.sa-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--text-muted); }
#sa-close {
  background: none; border: 0; cursor: pointer; font-size: 24px; line-height: 1;
  color: var(--text-muted); padding: 0 4px;
}
#sa-close:hover { color: var(--text); }
#sa-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.sa-msg { max-width: 92%; border-radius: 12px; padding: 11px 14px; line-height: 1.55; font-size: 14.5px; }
.sa-msg p { margin: 0 0 9px; }
.sa-msg p:last-child { margin-bottom: 0; }
.sa-bot { background: var(--bg-hover); align-self: flex-start; }
.sa-user { background: var(--accent-dim); color: var(--text); align-self: flex-end; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sa-chip {
  border: 1px solid var(--border-hover); background: transparent; color: var(--accent);
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px;
  cursor: pointer; text-align: left;
}
.sa-chip:hover { background: var(--bg-hover); }
#sa-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
#sa-input {
  flex: 1; padding: 10px 13px; border-radius: 999px;
  border: 1px solid var(--border-hover); background: var(--bg);
  color: var(--text); font: inherit; font-size: 14px;
}
#sa-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#sa-form button {
  border: 0; background: var(--accent); color: #fff; border-radius: 999px;
  width: 40px; cursor: pointer; font-size: 17px;
}
@media (max-width: 520px) {
  #sa-root { right: 12px; bottom: 12px; }
  #sa-panel { width: calc(100vw - 24px); }
}

/* ─── Werkbank: technische Auszeichnungen in Mono ──────────── */
.label, .hero-stat-number, .ref-logos li, .ref-card-tag {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* ID-Selektor schlaegt sonst das hidden-Attribut */
#sa-panel[hidden] { display: none; }
/* Wortmarke: SVG folgt Textfarbe und Akzent des jeweiligen Themes */
.nav-logo .brand-mark { color: var(--text); flex: none; }

