/* ==========================================================================
   PSB Wangen – Stylesheet
   Farben gemäss Styles/Farb_Palette.png
   ========================================================================== */

:root {
  /* Primärfarben */
  --primary-dark: #384635;
  --primary-dark-hover: #4a5a46;
  --primary: #a1ac8f;
  --primary-hover: #929e80;
  --primary-light: #bbc3af;
  --primary-pale: #e8ece3;

  /* Hintergründe & Flächen */
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-soft: #f3f3ef;

  /* Text */
  --text: #303630;
  --text-secondary: #626b62;
  --text-muted: #8c938c;
  --border: #d8ddd3;

  /* Status */
  --success: #58705a;
  --warning: #b89a68;
  --error: #a65d5d;
  --info: #687f8f;

  --link: #2a664f;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito Sans", "Lato", "Segoe UI", Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(48, 54, 48, .04), 0 6px 24px rgba(48, 54, 48, .05);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--primary-dark); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6f7c5f;
  margin-bottom: .9rem;
}

.lead { font-size: 1.08rem; color: var(--text-secondary); max-width: 34rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem/1 var(--font-sans);
  padding: .95rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: var(--primary-dark-hover); color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-pale); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--primary-pale); color: var(--primary-dark); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .92rem; color: var(--text); text-decoration: none;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover { color: var(--primary-dark); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #fff; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.topbar a, .topbar span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.topbar a:hover { color: var(--primary-light); }
.topbar .lang { display: flex; gap: .9rem; }
.topbar .lang a { opacity: .7; font-weight: 600; letter-spacing: .04em; }
.topbar .lang a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.topbar .lang a:hover { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 2rem; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 16px rgba(48,54,48,.05); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 120px; transition: min-height .2s; }
.site-header .container, .topbar .container { max-width: calc(1480px + 2 * var(--gutter)); }
.main-nav > ul > li > a, .main-nav > ul > li > button, .header-cta { white-space: nowrap; }
.site-header.scrolled .container { min-height: 92px; }

.brand { display: flex; align-items: center; gap: 1.4rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 88px; height: auto; transition: width .2s; }
.site-header.scrolled .brand img { width: 62px; }
.brand-name, .brand-sub { transition: font-size .2s, margin .2s; }
.site-header.scrolled .brand { gap: 1.1rem; }
.site-header.scrolled .brand-name { font-size: 1.15rem; }
.site-header.scrolled .brand-sub { font-size: .5rem; margin-top: .45rem; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font-family: var(--font-sans); font-size: 1.45rem; letter-spacing: .2em; color: var(--primary-dark); font-weight: 400; margin-right: -.2em; }
.brand-sub { font-size: .6rem; letter-spacing: .28em; color: var(--text-secondary); text-transform: uppercase; margin-top: .75rem; text-align: center; line-height: 1.55; margin-right: -.28em; }
.brand-sub em { font-style: normal; color: #8a967a; display: block; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.6rem, 3vw, 3.4rem); align-items: center; }
.main-nav > ul a, .main-nav > ul button {
  font: 500 1rem/1 var(--font-sans); color: var(--text); text-decoration: none;
  background: none; border: 0; padding: .6rem 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
  border-bottom: 2px solid transparent;
}
.main-nav > ul > li > a, .main-nav > ul > li > button { border-bottom: 0; transition: color .2s; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > button:hover, .main-nav > ul > li.open > button,
.main-nav > ul > li > a[aria-current="page"], .main-nav .is-active > button { color: #6f7c5f; }
.main-nav .chev { width: 11px; height: 11px; opacity: .45; transition: transform .2s; }

.has-sub { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: calc(100% + .45rem); left: -1.1rem; min-width: 17rem;
  background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--primary); border-radius: 0; box-shadow: 0 16px 32px -20px rgba(48,54,48,.45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
#sub-info { left: auto; right: -1.1rem; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.submenu a { display: block; padding: .7rem .9rem; border-radius: 6px; border: 0; line-height: 1.35; font-size: .95rem; }
.main-nav .submenu a { display: block; width: 100%; border-radius: 0; padding: .6rem 1.1rem; font-weight: 400; white-space: nowrap; transition: background .15s, color .15s; }
.main-nav .submenu a:hover { background: var(--primary-pale); color: var(--text); }
.main-nav .submenu a[aria-current="page"] { color: #6f7c5f; }
.has-sub:hover .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .chev { transform: rotate(180deg); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; cursor: pointer; color: var(--primary-dark); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-mobile-extra, .main-nav .nav-close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #eff2eb; }
.hero .container { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; min-height: 480px; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.hero-text { padding: 2.5rem 0 3.25rem; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2.6rem; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 47%; }
.hero-media::before { content: ""; position: absolute; top: 0; bottom: 0; left: -28px; width: 60%; background: var(--primary-light); opacity: .55; border-radius: 260px 0 0 260px / 50% 0 0 50%; }
.hero-media img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; border-radius: 260px 0 0 260px / 50% 0 0 50%; }

.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.values li { max-width: 175px; padding-left: 1rem; border-left: 2px solid var(--primary-light); }
.values strong { display: block; font-weight: 500; font-size: 1rem; color: var(--text); }
.values span { display: block; font-size: .82rem; color: var(--text-secondary); line-height: 1.5; margin-top: .2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--surface-soft); }
.section-pale { background: var(--primary-pale); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Service cards ---------- */
.services-band { background: #f5f5f1; padding: 2.1rem 0 3.5rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.cards.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-3 .card h3 { min-height: 0; }
.card {
  background: var(--surface); border: 1px solid #ecece6; border-radius: 10px;
  padding: 1.8rem 1.6rem 1.7rem; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(48,54,48,.03);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.icon-circle svg { width: 26px; height: 26px; }
.card::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--primary); margin-bottom: 1.2rem; }
.card h3 { font-size: 1.2rem; line-height: 1.3; min-height: 2.6em; margin: 0 0 .7rem; color: var(--text); }
.card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1.3rem; }
.card .link-arrow { align-self: flex-start; }
.card-body { display: flex; flex-direction: column; flex-grow: 1; }
.card-body p { flex-grow: 1; }

/* ---------- Welcome ---------- */
.welcome { padding: 3.25rem 0 4.5rem; }
.welcome .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.welcome h2 { font-size: clamp(1.7rem, 2.6vw, 2.05rem); }
.welcome p { color: var(--text-secondary); font-size: .95rem; }
.info-panel { background: #ecede6; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr 1fr; }
.info-panel > div { padding: 1.8rem 1.6rem; display: flex; gap: 1.3rem; }
.info-panel > div + div { border-left: 1px solid #dcdfd5; }
.info-panel h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 500; color: var(--text); margin: 0 0 .9rem; }
.info-panel p, .info-panel dd, .info-panel dt { font-size: .9rem; color: var(--text-secondary); margin: 0; line-height: 1.7; }
.info-panel a { color: var(--text); text-decoration: none; }
.info-panel a:hover { color: var(--primary-dark); text-decoration: underline; }
.hours { margin: 0; }
.hours dt { margin-top: .4rem; }
.hours dt:first-child { margin-top: 0; }
.hours dd { color: var(--text); }

/* ---------- Slogan band ---------- */
.slogan {
  background: linear-gradient(110deg, var(--primary-dark) 0%, #5e6d58 55%, var(--primary-light) 120%);
  color: #fff; text-align: center; padding: 3.5rem 0;
}
.slogan p.slogan-claim { font-family: var(--font-sans); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--primary-light); font-size: .9rem; margin-bottom: 1rem; }
.slogan h2 { color: #fff; margin-bottom: 1.6rem; }

/* ---------- Page header (sub pages) ---------- */
.page-hero { background: #eff2eb; padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid #ecece6; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero.has-photo { padding: 0; border-bottom: 0; }
.page-hero.has-photo .container { display: flex; align-items: center; min-height: 340px; }
.page-hero.has-photo .page-hero-text { width: 54%; padding: 2.5rem 0; }
.page-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; }
.page-hero-media::before { content: ""; position: absolute; top: 0; bottom: 0; left: -22px; width: 60%; background: var(--primary-light); opacity: .55; border-radius: 200px 0 0 200px / 50% 0 0 50%; }
.page-hero-media img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 200px 0 0 200px / 50% 0 0 50%; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.page-hero .lead { max-width: 40rem; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Content layouts ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-secondary); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--primary-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23384635' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/62% no-repeat;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; align-items: center; }
.steps li::before {
  content: counter(step); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary-dark); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.steps strong { display: block; color: var(--text); }
.steps span { color: var(--text-secondary); font-size: .95rem; }

.aside-card { background: var(--surface); border: 1px solid #ecece6; border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); position: sticky; top: 110px; }
.aside-card h3 { font-size: 1.3rem; }
.aside-card p { color: var(--text-secondary); font-size: .95rem; }
.aside-card .btn { width: 100%; margin-top: .4rem; }
.aside-card .link-arrow { margin-top: 1.4rem; }
.aside-card .contact-lines { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .6rem; font-size: .95rem; }
.contact-lines li { display: flex; gap: .7rem; align-items: flex-start; }
.contact-lines svg { width: 18px; height: 18px; margin-top: .25rem; color: var(--primary); flex-shrink: 0; }
.contact-lines a { color: var(--text); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

.other-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mini-card { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid #ecece6; border-radius: 10px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text); transition: box-shadow .2s; }
.mini-card:hover { box-shadow: var(--shadow); color: var(--primary-dark); }
.mini-card span { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.3; }

/* ---------- Profil (Über mich) ---------- */
.profile { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.person-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--primary-pale), var(--primary-light)); display: grid; place-items: center; color: #fff; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo svg { width: 88px; height: 88px; opacity: .9; }
.profile h2 { margin-bottom: .3rem; }
.profile h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.person-role { color: #6f7c5f; font-weight: 600; font-size: .95rem; margin-bottom: 1.2rem; }
@media (max-width: 680px) { .profile { grid-template-columns: 1fr; } .person-photo { max-width: 280px; } }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-item { background: var(--surface); border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid #ecece6; }
.value-item h3::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--primary-light); margin-bottom: 1rem; }
.path-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1000px; }
.path-steps li { position: relative; text-align: center; }
.path-num { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--primary-light); font-family: var(--font-serif); font-size: 1.6rem; color: var(--primary-dark); }
.path-steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 48px); right: calc(-50% - 2.5rem + 48px); border-top: 1px dashed var(--primary); }
.path-steps h3 { font-size: 1.25rem; margin: 0 0 .6rem; }
.path-steps p { color: var(--text-secondary); font-size: .95rem; max-width: 18rem; margin: 0 auto; }
@media (max-width: 760px) {
  .path-steps { grid-template-columns: 1fr; gap: 2rem; }
  .path-steps li::after { display: none; }
}
.value-item h3 { font-size: 1.2rem; }
.value-item p { color: var(--text-secondary); font-size: .93rem; margin: 0; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 1.25rem; }
.news-item { background: var(--surface); border: 1px solid #ecece6; border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; }
.news-item time { font-size: .85rem; font-weight: 600; color: #6f7c5f; letter-spacing: .04em; text-transform: uppercase; }
.news-item h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.news-item p { color: var(--text-secondary); margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--primary-pale); color: var(--primary-dark); padding: .2rem .6rem; border-radius: 99px; margin-top: .5rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid #ecece6; border-radius: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 3.4rem 1.2rem 1.5rem; position: relative;
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--primary-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 1.5rem 1.3rem; color: var(--text-secondary); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid #ecece6; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .8rem .95rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(161,172,143,.35); background: #fff; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--error); }
.field .err { display: none; color: var(--error); font-size: .82rem; margin-top: .35rem; }
.field.invalid .err { display: block; }
.field label.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; font-size: .9rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 1.4rem; }
.field .check input { width: 18px; height: 18px; margin: calc((1.6em - 18px) / 2) 0 0; padding: 0; border: 0; box-shadow: none; accent-color: var(--primary-dark); flex-shrink: 0; cursor: pointer; }
.hp { position: absolute; left: -5000px; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: var(--radius); margin-top: 1.2rem; font-size: .95rem; }
.form-status.ok { display: block; background: #e5ece5; color: var(--success); border: 1px solid #c8d5c8; }
.form-status.fail { display: block; background: #f5e9e9; color: var(--error); border: 1px solid #e6cccc; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 1rem; }

.info-stack { display: grid; gap: 1.25rem; }
.info-box { background: var(--surface-soft); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; gap: 1.2rem; }
.info-box h2 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 0 0 .6rem; letter-spacing: 0; }
.info-box p, .info-box dd, .info-box dt { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.info-box a { color: var(--text); }
.person-line { display: block; font-weight: 600; color: var(--text); }
.info-panel .vcard-person { font-family: 'Montserrat', var(--font-sans); font-weight: 500; font-size: 1rem; color: var(--text); margin: 0 0 1rem; line-height: 1.3; }
.info-panel .vcard-person span { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .85rem; color: var(--text-secondary); margin-top: .25rem; }
.info-panel .vcard-address { font-style: normal; font-size: .9rem; line-height: 1.75; color: var(--text); padding-left: 1rem; border-left: 2px solid var(--primary); }
.directions-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.directions-head .lead { margin: 0; }
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.house-photo { margin: 0; }
.house-photo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 760px) { .directions { grid-template-columns: 1fr; } }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; background: var(--primary-pale); }
.map[data-map] { display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.map[data-map] p { max-width: 24rem; margin: 0 auto 1.1rem; font-size: .92rem; color: var(--text-secondary); }
.map.is-loaded { padding: 0; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { font-size: .9rem; margin-top: .6rem; display: inline-block; }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--text-secondary); }
.notice { background: #f6f0e4; border: 1px solid #e8dcc3; color: #7a6440; border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .9rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #d9ddd3; padding: 4rem 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto auto; gap: 2.5rem clamp(2.5rem, 6vw, 6.5rem); padding-bottom: 3rem; align-items: start; }
.footer-brand { text-align: center; justify-self: start; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 150px; height: auto; margin: 0 auto; }
.site-footer .footer-logo:hover { text-decoration: none; }
.footer-logo-sub { display: block; margin-top: .55rem; font-family: 'Montserrat', var(--font-sans); font-weight: 500; font-size: .56rem; line-height: 1.55; letter-spacing: .26em; text-transform: uppercase; color: #f0f2ec; margin-right: -.26em; }
.footer-logo-sub em { font-style: normal; color: var(--primary); }
.footer-brand p { color: #c3c9bc; max-width: 22rem; margin: 0; }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; line-height: 1.45; }
.site-footer ul a { white-space: nowrap; }
.site-footer a { color: #e9ece5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-person { font-family: 'Montserrat', var(--font-sans); font-weight: 500; font-size: 1.05rem; color: #fff; margin: 0 0 1.1rem; line-height: 1.3; }
.footer-person span { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .85rem; color: var(--primary-light); margin-top: .25rem; }
.footer-address { font-style: normal; line-height: 1.75; padding-left: 1rem; border-left: 2px solid var(--primary); color: #e9ece5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; font-size: .82rem; color: #aab2a3; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom ul { display: flex; gap: 1.5rem; }
.footer-brand .footer-claim { font-family: 'Montserrat', var(--font-sans); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-light); margin: 1.3rem 0 0; max-width: none; white-space: nowrap; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .main-nav > ul { gap: 1.5rem; }
}

@media (max-width: 1180px) {
  .main-nav > ul { gap: 1.2rem; }
  .header-cta { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .topbar .hide-md { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header .container { min-height: 92px; }
  .brand img { width: 66px; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--surface);
    padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); transition: transform .25s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.12); overflow-y: auto; z-index: 60;
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .main-nav > ul a, .main-nav > ul button { width: 100%; justify-content: space-between; padding: 1rem 0; font-size: 1.05rem; border-bottom: 0; }
  .main-nav > ul a[aria-current="page"] { border-bottom: 0; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .8rem .6rem; display: none; min-width: 0; }
  .has-sub:hover .submenu { display: none; }
  .has-sub.open .submenu { display: block; }
  .main-nav .submenu a { position: relative; padding: .6rem .5rem .6rem 1rem; font-size: .98rem; white-space: normal; }
  .main-nav .submenu a::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 1.05em; transform: translateY(-50%); border-radius: 2px; background: var(--border); }
  .main-nav .submenu a[aria-current="page"]::before { background: var(--primary); }
  .main-nav .submenu a:hover { background: none; color: #6f7c5f; }
  .nav-mobile-extra { display: block; margin-top: 1.5rem; }
  .nav-mobile-extra .btn { width: 100%; }
  .main-nav .nav-close { display: inline-flex; position: absolute; top: 1.4rem; right: 1.2rem; width: auto; padding: .6rem; border: 1px solid var(--border); }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(48,54,48,.35); z-index: 49; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }

  .hero .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { position: relative; width: auto; height: 300px; }
  .hero-media::before { display: none; }
  .hero-media img { border-radius: 0; }
  .page-hero.has-photo .container { min-height: 0; }
  .page-hero.has-photo .page-hero-text { width: auto; padding: 2rem 0; }
  .page-hero-media { position: relative; width: auto; height: 220px; }
  .page-hero-media::before { display: none; }
  .page-hero-media img { border-radius: 0; }
  .hero-text { padding-top: 2rem; }
  .welcome .container, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .other-services, .value-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .topbar .container { justify-content: space-between; }
  .topbar ul.topbar-contact { gap: 1.1rem; }
  .topbar .hide-sm { display: none; }
  .brand { gap: .9rem; }
  .brand img { width: 54px; }
  .site-header.scrolled .brand img { width: 46px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: .5rem; margin-top: .5rem; }
  .site-header.scrolled .brand-name { font-size: 1rem; }
  .site-header.scrolled .brand-sub { font-size: .46rem; margin-top: .4rem; }
  .site-header .container, .site-header.scrolled .container { min-height: 76px; }
  html { scroll-padding-top: 100px; }
  .cards, .other-services, .value-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 1.4rem; }
  .card h3 { min-height: 0; }
  .icon-circle { width: 46px; height: 46px; }
  .info-panel { grid-template-columns: 1fr; }
  .info-panel > div + div { border-left: 0; border-top: 1px solid #dcdfd5; }
  .hero-media { height: 230px; }
  .page-hero-media { height: 180px; }
  .values { gap: 1.25rem; flex-direction: column; }
  .values li { max-width: none; }
  .news-item { grid-template-columns: 1fr; gap: .4rem; }
  .footer-brand { justify-self: stretch; }
  .footer-brand .footer-claim { white-space: normal; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Impressum: Gestaltung ---------- */
.credit { padding-top: 1.6rem; }
.credit-logo { display: block; width: max-content; margin: 0 0 .9rem; }
.credit-logo img { width: 190px; height: auto; display: block; }

@media (max-width: 900px) { .cards.cards-3 { grid-template-columns: 1fr; } }

/* ---------- Preise ---------- */
.prices { margin: 0; display: grid; gap: .55rem; }
.prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.prices > div:last-child { border-bottom: 0; padding-bottom: 0; }
.prices dt { color: var(--text); font-size: .95rem; }
.prices dt span { display: block; color: var(--text-secondary); font-size: .82rem; }
.prices dd { margin: 0; font-family: var(--font-serif); font-size: 1.15rem; color: var(--primary-dark); white-space: nowrap; }
.card-prices { margin: 0 0 1.3rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-prices .prices dt { font-size: .88rem; }
.card-prices .prices dt span { font-size: .78rem; }
.card-prices .prices dd { font-size: 1.05rem; }
.price-note { text-align: center; color: var(--text-secondary); max-width: 40rem; margin: 1.8rem auto 0; font-size: .95rem; }
.aside-price-h { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); margin: 0 0 .8rem; }
.aside-card .prices { margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }

/* Werdegang auf "Über mich" als Zeitleiste */
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.cv-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.6rem, 3vw, 2.4rem); }
.cv-card h3 { font-size: 1.35rem; margin: 0 0 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.cv-list { list-style: none; margin: 0; padding: 0; position: relative; }
.cv-list::before { content: ""; position: absolute; left: 5px; top: .45rem; bottom: .6rem; width: 2px; background: var(--primary-pale); }
.cv-list li { position: relative; padding: 0 0 1.5rem 2rem; }
.cv-list li:last-child { padding-bottom: 0; }
.cv-list li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.cv-year { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: #6f7c5f; font-variant-numeric: tabular-nums; margin-bottom: .2rem; }
.cv-list strong { display: block; font-weight: 600; color: var(--text); line-height: 1.4; }
.cv-place { display: block; font-size: .92rem; color: var(--text-secondary); line-height: 1.5; margin-top: .15rem; }
@media (max-width: 860px) { .cv-grid { grid-template-columns: 1fr; } }

/* Flyer auf der Kontaktseite */
.flyer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .7rem !important; }
.flyer-links a { font-weight: 600; }
