:root {
  --bg: #ffffff;
  --surface: #f6f8f9;
  --text: #0b1320;
  --muted: #5b6470;
  --primary: #0f766e; /* teal */
  --primary-600: #0d665f;
  --accent: #0ea5e9; /* light blue */
  --ring: rgba(15, 118, 110, 0.25);
  --radius: 12px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Offset for sticky header when jumping to anchors */
main, section[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; background: var(--primary); color: #fff; border-radius: 8px; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: .1px; }
h1 { font-size: clamp(1.8rem, 2.2rem + 1.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.6rem + .6vw, 2rem); margin-bottom: .75rem; }
h3 { font-size: 1.15rem; }
.lead { color: var(--muted); max-width: 60ch; }
p { margin: 0 0 1rem; color: var(--muted); }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 2000;
  backdrop-filter: saturate(160%) blur(8px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid #e9eef2;
}
.nav-wrap { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .8rem 0; }
.brand { font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: .2px; display: inline-flex; align-items: center; gap: .6rem; }
.brand::before { content: none; display: none; }
.site-nav { justify-self: center; }
.site-nav ul { display: flex; gap: 2rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.site-nav a { color: var(--primary); text-decoration: none; padding: .45rem .2rem; border-radius: 8px; font-weight: 600; }
.site-nav a:hover, .site-nav a.is-active { text-decoration: underline; }

/* Header call button */
.call-cta { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: var(--primary); color: #fff; text-decoration: none; border-radius: 14px; box-shadow: 0 12px 28px -14px rgba(15,118,110,.7); font-weight: 700; }
.call-cta:hover { filter: brightness(.95); }
.call-ico { width: 18px; height: 18px; display: inline-block; flex: 0 0 18px; background: #fff; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='0'><path fill='white' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.24 1.01l-2.2 2.22z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.24 1.01l-2.2 2.22z'/></svg>") center / contain no-repeat; }
.ico-phone { width: 18px; height: 18px; display: inline-block; margin-right: .5rem; background: #fff; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.24 1.01l-2.2 2.22z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.24 1.01l-2.2 2.22z'/></svg>") center / contain no-repeat; }

/* Burger button */
.nav-toggle { display: none; align-items: center; gap: .6rem; border: 1px solid #e6ebef; background: #fff; color: var(--text); padding: .5rem .7rem; border-radius: 10px; cursor: pointer; }
.nav-toggle:focus-visible { box-shadow: 0 0 0 4px var(--ring); }
.hamburger { position: relative; width: 20px; height: 2px; background: var(--text); border-radius: 2px; display: inline-block; transition: transform .2s ease; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }

/* Hero */
.hero {
  background:
    radial-gradient(60rem 60rem at 120% -10%, rgba(15,118,110,0.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfcfd 60%, #f7fafb);
  padding: 3.5rem 0 2.5rem;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.hero-text p { max-width: 60ch; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0,0,0,.25); }

/* Sections */
.section { padding: 3rem 0; }
.section.alt { background: var(--surface); }
.cols { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
.cols-2 { grid-template-columns: 1.1fr .9fr; }
.portrait img { width: 100%; height: auto; border-radius: var(--radius); }
#philosophie picture { display: block; }
#philosophie .values-img { width: 100%; height: auto; border-radius: var(--radius); display: block; margin-left: 0; }
.values-img { width: 100%; height: auto; border-radius: var(--radius); display: block; margin-left: 0; box-shadow: 0 20px 50px -20px rgba(0,0,0,.25); }

/* Über mich: Bild links, Text rechts; Bildhöhe passt sich der Texthöhe an */
.ueber-grid { grid-template-columns: .9fr 1.1fr; align-items: stretch; }
.ueber-grid .portrait { height: 100%; }
.ueber-grid .portrait img { height: 100%; width: 100%; object-fit: cover; }
.about-list { margin: .25rem 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.about-list li { margin: .2rem 0; }
.values-list { margin: .25rem 0 1rem; padding-left: 1.2rem; color: var(--muted); }
.values-list li { margin: .2rem 0; }

/* Cards */
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid #e6ebef; border-radius: 14px; padding: 1rem;
  box-shadow: 0 4px 18px -10px rgba(0,0,0,.15);
}
.card h3 { margin-top: .25rem; }
.card p { margin-bottom: .5rem; }
.icon { font-size: 1.6rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -8px rgba(15,118,110,.6); }
.btn-primary:hover { background: var(--primary-600); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { filter: brightness(.95); }
.btn-ghost { color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: color-mix(in srgb, var(--primary) 8%, #fff); }
.btn-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* Contact */
.contact-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
.map-wrap { aspect-ratio: 16 / 10; background: #e8eef2; border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-wrap .map { width: 100%; height: 100%; }
.contact-links { display: flex; gap: .5rem; flex-wrap: wrap; }

/* FAQ */
.faq details { border: 1px solid #e6ebef; background: #fff; border-radius: 10px; padding: .75rem 1rem; margin-bottom: .5rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .5rem 0 0; }

/* Footer */
.site-footer { background: #fff; color: #64748b; padding: 1.2rem 0; border-top: 1px solid #e6ebef; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer small { color: #64748b; }
.site-footer nav a { color: var(--primary); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer nav a + a::before { content: "·"; color: #94a3b8; margin: 0 .6rem; }

/* Utilities */
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.actions-center { justify-content: center; }
.link { color: var(--primary); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Back-to-top removed */
/* Back-to-top button */
.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 2000; width: 46px; height: 46px; border-radius: 999px; border: 0; cursor: pointer; background: var(--primary); color: #fff; font-size: 18px; box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.back-to-top:hover { background: var(--primary-600); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:focus-visible { box-shadow: 0 0 0 4px var(--ring), 0 12px 30px -14px rgba(0,0,0,.5); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  /* Über mich mobile: Bild wieder auto-Height */
  .ueber-grid .portrait img { height: auto; }
  .values-img { width: 100%; }
  /* Mobile menu behavior */
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid #e6ebef; border-radius: 12px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.25); display: none; }
  /* show whole nav only when open */
  .site-nav.open { display: block; }
  .site-nav ul { display: flex; flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .9rem 1rem; border-radius: 10px; margin: .15rem; }
  .site-nav a:hover, .site-nav a.is-active { background: #f3f7f9; }
  .call-cta { display: none; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  /* Hide label on very small screens to save space */
  .nav-toggle-label { display: none; }
}

/* Focus styles */
a, button, summary { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
  border-radius: 8px;
}
.media, img, picture, svg, video { max-width: 100%; height: auto; }
img, picture, svg, video { display: block; }
body.menu-open { overflow: hidden; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 3000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.45); }
.modal-dialog { position: relative; width: min(560px, 92vw); margin: 12vh auto; }
.modal-content { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: 0 30px 80px -30px rgba(0,0,0,.45); }
.modal-content h3 { margin-top: 0; }
