/* Sandra Hösl – Shared Stylesheet */
:root {
  --font-display: 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --c-primary:        #A3BBCA;
  --c-primary-dark:   #79A4BC;
  --c-primary-darker: #5E8FAB;
  --c-dark:           #79A4BC;
  --c-warm:           #c08a6a;
  --c-warm-soft:      #e8d4c4;
  --c-cream:          #faf6ef;
  --c-ink:            #2c2c2c;
  --c-ink-soft:       #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: #3a3a3a;
  background: #edf4fa;
  letter-spacing: 0.005em;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.15  0 0 0 0 0.15  0 0 0 0.65 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  box-shadow: none;
  border-bottom: 1px solid rgba(58, 90, 106, 0.10);
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo  { flex-shrink: 0; opacity: 0.95; }
.nav-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--c-dark);
  letter-spacing: 0.005em;
  line-height: 1;
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.65);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav-links a:hover  { color: var(--c-warm); }
.nav-links a.active { color: var(--c-dark); border-bottom: 1px solid var(--c-warm); }

.nav-links a[href="/kosten"] { font-size: 0; letter-spacing: 0; }
.nav-links a[href="/kosten"]::before {
  content: 'Rahmenbedingungen';
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { background: var(--c-dark); height: 1.5px; width: 22px; margin: 5px 0; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 768px) {
  nav { padding: 16px 22px; border-bottom: none; }
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    border-bottom: 1px solid #cce0ef;
  }
  .nav-links.active { max-height: 400px; }
  .nav-links a {
    padding: 16px 22px;
    border-bottom: 1px solid rgba(58, 90, 106, 0.06);
    letter-spacing: 0.18em;
    display: block;
    font-size: 13px;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(192, 138, 106, 0.04);
    color: var(--c-warm);
    border-left: 2px solid var(--c-warm);
    padding-left: 20px;
  }
  .nav-links a[href="/kosten"]::before { font-size: 13px; letter-spacing: 0.18em; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--c-dark);
  background-size: cover;
  background-position: center;
  padding: 120px 40px;
  min-height: clamp(500px, calc(102vh - 76px), 760px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 0;
}
.hero img {
  opacity: 0;
  transition: opacity 0.55s ease-out;
}
.hero img.loaded,
html:not(.js) .hero img { opacity: 1; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
  text-align: left;
  padding-left: 40px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.005em;
}

.hero p {
  font-family: var(--font-body);
  font-size: 18px;
  color: #edf4fa;
  margin-bottom: 30px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.01em;
}

.hero.page-hero { min-height: 520px; padding: 80px 40px; }
.hero.page-hero .hero-title { font-size: 40px; }

.hero-title[data-eyebrow]::before {
  content: attr(data-eyebrow);
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(232, 212, 196, 0.9);
  margin-bottom: 22px;
  font-style: normal;
}

@media (max-width: 768px) {
  .hero { padding: 80px 20px; min-height: 500px; }
  .hero.page-hero { min-height: 360px; padding: 60px 20px; }
  .hero.page-hero .hero-title { font-size: 28px; }
  .hero-content { padding-left: 0; }
  .hero-title { font-size: 32px; }
  .hero-title[data-eyebrow]::before { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 14px; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 80px 40px; max-width: 100%; }
.section > * { max-width: 1200px; margin: 0 auto; }
.section-light { background: #edf4fa; }
.section-content { font-size: 16px; line-height: 1.8; color: #555; }
.section-content p { margin-bottom: 15px; }

.section h2 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 40px;
  color: #3a3a3a;
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.01em;
}
.section h2::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--c-warm);
  margin: 16px auto 0;
  border-radius: 0;
  opacity: 0.75;
}
.section h2[data-eyebrow]::before {
  content: attr(data-eyebrow);
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 14px;
  font-style: normal;
}
.section h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 20px 0 10px;
  color: #3a3a3a;
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .section { padding: 60px 20px; }
  .section h2 { font-size: 24px; }
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  display: inline-block;
  background: var(--c-dark);
  color: white;
  padding: 16px 36px;
  text-decoration: none;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--c-dark);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.cta:hover {
  background: transparent;
  color: var(--c-dark);
  transform: translateY(-1px);
  box-shadow: none;
}

/* ── Text link ────────────────────────────────────────────── */
.text-link {
  display: inline-block;
  color: var(--c-dark);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--c-warm);
  padding-bottom: 3px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.text-link:hover { color: var(--c-warm); border-bottom-color: var(--c-warm); }

/* ── Service cards ────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.service-card {
  position: relative;
  background: #fff;
  padding: 36px 32px;
  border-radius: 8px;
  border: 1px solid rgba(58, 90, 106, 0.10);
  box-shadow: none;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card::before { content: none; }
.service-card:hover {
  border-color: var(--c-warm);
  box-shadow: 0 14px 32px rgba(58, 90, 106, 0.07);
  transform: translateY(-3px);
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #3a3a3a;
}
.service-card p { color: #666; font-size: 14px; line-height: 1.6; }
.service-card .service-list {
  list-style: disc;
  padding-left: 18px;
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}
.service-icon {
  width: 40px;
  height: 40px;
  color: var(--c-dark);
  opacity: 0.7;
  margin-bottom: 18px;
  display: block;
}

/* ── Pull quote ───────────────────────────────────────────── */
.pull-quote,
#quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--c-ink);
  margin: 0 0 24px;
}
.pull-quote-author,
#quote-author {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin: 0;
}
.q-highlight { color: var(--c-primary); font-style: italic; }

/* ── Mini pull quote ──────────────────────────────────────── */
.mini-pull-quote-wrapper {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
  margin-bottom: 32px;
  border-top: 1px solid rgba(192, 138, 106, 0.35);
  border-bottom: 1px solid rgba(192, 138, 106, 0.35);
}
.mini-pull-quote-mark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 130px;
  line-height: 1;
  color: var(--c-primary);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.mini-pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--c-ink);
  margin: 0 0 16px;
}

/* ── Person teaser ────────────────────────────────────────── */
.person-teaser { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.person-teaser-img {
  height: 460px;
  border-radius: 8px;
  background-size: cover;
  background-position: center 35%;
  position: relative;
  isolation: isolate;
}
.person-teaser-img::after {
  content: '';
  position: absolute;
  top: -14px;
  right: -14px;
  width: 70px;
  height: 70px;
  border-top: 1px solid var(--c-warm);
  border-right: 1px solid var(--c-warm);
  border-radius: 0 6px 0 0;
  pointer-events: none;
}

/* ── Contact cards ────────────────────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.contact-card {
  background: white;
  padding: 36px 28px;
  border-radius: 8px;
  border: 1px solid rgba(58, 90, 106, 0.08);
  box-shadow: none;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
a.contact-card:hover {
  border-color: var(--c-warm);
  box-shadow: 0 12px 28px rgba(58, 90, 106, 0.06);
  transform: translateY(-4px);
}
.contact-icon { width: 48px; height: 48px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; color: var(--c-primary); }
.contact-label { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-warm); margin-bottom: 8px; }
.contact-value { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: #3a3a3a; margin-bottom: 10px; line-height: 1.4; }
.contact-hint { font-size: 13px; color: #888; line-height: 1.5; }

/* ── Info cards ───────────────────────────────────────────── */
.info-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.info-card {
  background: white;
  padding: 36px;
  border-radius: 8px;
  border: 1px solid rgba(58, 90, 106, 0.08);
  box-shadow: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.info-card:hover { border-color: var(--c-warm); box-shadow: 0 12px 28px rgba(58, 90, 106, 0.06); }
.info-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 0 0 18px; color: #3a3a3a; letter-spacing: 0.005em; }
.info-card p { color: #555; line-height: 1.7; font-size: 15px; margin-bottom: 14px; }
.info-card p:last-child { margin-bottom: 0; }

/* ── Prices table ─────────────────────────────────────────── */
.prices-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(58, 90, 106, 0.10);
  box-shadow: none;
  margin: 0;
}
.prices-table thead th {
  background: var(--c-dark);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.prices-table thead th:nth-child(2),
.prices-table thead th:nth-child(3) { text-align: right; width: 130px; }
.prices-table td {
  padding: 18px 20px;
  border-top: 1px solid #e5f0f8;
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
}
.prices-table td:first-child { font-weight: 500; color: #3a3a3a; }
.prices-table td:nth-child(2),
.prices-table td:nth-child(3) {
  font-family: var(--font-display);
  text-align: right;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-dark);
  white-space: nowrap;
}
.prices-table tbody tr:hover { background: #edf4fa; }
.prices-notes { text-align: center; font-size: 14px; color: #888; line-height: 1.8; max-width: 720px; margin: 28px auto 0; }

/* ── Modals ───────────────────────────────────────────────── */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); animation: fadeIn 0.3s ease-out; }
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-content { background-color: white; padding: 40px; border-radius: 8px; max-width: 800px; width: 90%; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.modal-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  margin-top: 0;
  color: #3a3a3a;
  font-size: 28px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--c-warm-soft);
  padding-bottom: 15px;
}
.close { position: absolute; right: 20px; top: 20px; font-size: 32px; font-weight: bold; color: #999; cursor: pointer; transition: color 0.3s; }
.close:hover, .close:focus { color: var(--c-primary); }
.modal-body { display: block; }
.modal-image { width: 100%; height: 320px; background-size: cover; background-position: center; border-radius: 8px; background-color: #f0f0f0; margin-bottom: 32px; }
.modal-text p { color: #555; line-height: 1.8; font-size: 15px; margin-bottom: 18px; }
.modal-text .mini-pull-quote-wrapper { padding: 28px 0 20px; margin-bottom: 20px; }
.modal-text .mini-pull-quote-mark { font-size: 100px; }
.modal-text .mini-pull-quote { font-size: 17px; }
.modal-text strong { color: #3a3a3a; }
.modal-text ul { list-style: none; padding-left: 0; margin: 12px 0 24px; }
.modal-text li { position: relative; padding-left: 24px; margin-bottom: 10px; color: #555; line-height: 1.7; font-size: 15px; }
.modal-text li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; background: var(--c-primary); border-radius: 50%; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Angebote detail pages ────────────────────────────────── */
.content { margin: 0 auto; padding: 60px 40px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 36px; }
.breadcrumb a { color: var(--c-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.content p { color: #555; line-height: 1.8; font-size: 15px; margin-bottom: 18px; }
.content strong { color: var(--c-primary); }
.content a { color: var(--c-primary); text-decoration: none; }
.content a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: #79A4BC; color: white; padding: 50px 20px 30px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: left;
  margin-bottom: 30px;
}
.footer-label { font-weight: 600; margin-bottom: 12px; color: var(--c-primary); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-text { font-size: 14px; line-height: 1.7; opacity: 0.85; }
.footer-text a { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  opacity: 0.6;
}

/* ── Selection ────────────────────────────────────────────── */
::selection { background: var(--c-warm-soft); color: var(--c-dark); }

/* ── Scroll reveal ────────────────────────────────────────── */
html.js .section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .section.in-view { opacity: 1; transform: none; }

/* ── Focus rings ──────────────────────────────────────────── */
a:focus-visible, button:focus-visible { outline: 2px solid var(--c-warm); outline-offset: 3px; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pull-quote, #quote-text { font-size: 22px; }
  .mini-pull-quote { font-size: 17px; }
  .service-card h3 { font-size: 20px; }
  .person-teaser { grid-template-columns: 1fr; gap: 30px; }
  .person-teaser-img { height: 360px; }
  .modal-image { height: 220px; margin-bottom: 24px; }
  .modal-content { padding: 30px; width: 95%; }
  .modal-content h2 { font-size: 22px; }
  .info-grid { grid-template-columns: 1fr; }
  .content { padding: 40px 20px; }
}
@media (max-width: 600px) {
  .prices-table th, .prices-table td { padding: 12px 14px; font-size: 14px; }
  .info-card { padding: 28px; }
}
