/* ==========================================================================
   Betreuung24 – Max Phillip Vollmann
   Regionale Partnerseite
   ========================================================================== */

@font-face {
  font-family: "Alan Sans";
  src: url("images/fonts/AlanSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Alan Sans";
  src: url("images/fonts/AlanSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Alan Sans";
  src: url("images/fonts/AlanSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Alan Sans";
  src: url("images/fonts/AlanSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Alan Sans";
  src: url("images/fonts/AlanSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

:root {
  --slate: #14203E;
  --slate-deep: #0D1730;
  --forest: #1C2C52;
  --forest-deep: #14203E;
  --gold: #FCA311;
  --gold-deep: #E08E00;
  --cream: #FFFCF9;
  --sand: #FFF5E4;
  --paper: #FFFFFF;
  --ink: #182238;
  --ink-soft: #4C5670;
  --line: #E7DFD0;
  --mint: #B1EDE8;

  --serif: "Alan Sans", "Segoe UI", sans-serif;
  --sans: "Alan Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--slate-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--slate-deep);
}
.btn-primary:hover { background: var(--gold-deep); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-line {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate-deep);
}
.btn-line:hover { background: var(--slate-deep); color: var(--paper); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--slate-deep);
  color: var(--cream);
  font-size: 0.9rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { text-decoration: none; }
.topbar .topbar-phone { font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Header ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand .brand-logo { height: 40px; width: auto; display: block; margin-bottom: 4px; }
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-deep);
}
.brand .brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--forest);
}
nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
nav.main-nav a:hover { color: var(--forest); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  color: var(--slate-deep);
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
  }
  nav.main-nav a.btn { margin: 14px 28px 6px; justify-content: center; }
  header.site { position: sticky; }
  header.site .wrap { position: relative; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--slate-deep);
  color: var(--cream);
  overflow: hidden;
}
.hero .hills {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: auto;
  line-height: 0;
}
.hero-inner {
  position: relative;
  padding: 88px 0 160px;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.hero-eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.hero h1 { color: var(--paper); margin-bottom: 20px; }
.hero p.lede {
  color: #D8DED9;
  font-size: 1.12rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-media-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-photo {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--slate-deep);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}
.hero-card-title { margin-bottom: 14px; font-size: 1.25rem; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.hero-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
}
.hero-card li:last-child { border-bottom: none; }
.hero-card li svg { flex: none; margin-top: 3px; color: var(--forest); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 100px; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--forest-deep);
  color: var(--cream);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 0.92rem;
}
.trust-strip .item { display: flex; align-items: center; gap: 10px; }
.trust-strip svg { color: var(--gold); flex: none; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
  color: var(--forest);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-inner { padding: 48px 0 90px; }
  .wrap { padding: 0 20px; }
}

.on-sand { background: var(--sand); }
.on-paper { background: var(--paper); }

/* ---------- About Max ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.about-grid p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--forest);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--forest);
  margin-top: 18px;
}
.tagline-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--slate-deep);
  margin-top: 22px;
  margin-bottom: 6px;
  text-align: right;
}
.tagline-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: normal;
  color: var(--forest);
  margin-top: 0;
  text-align: right;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; }
}

/* ---------- Services ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-item {
  background: var(--paper);
  padding: 32px;
}
.service-item .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
  display: block;
}
@media (max-width: 700px) {
  .service-list { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process .step { position: relative; padding-top: 28px; }
.process .step::before {
  content: attr(data-step);
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.process .step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -20px;
  width: 14px; height: 1px;
  background: var(--line);
  display: none;
}
@media (min-width: 900px) {
  .process .step:not(:last-child)::after { display: block; }
}
@media (max-width: 780px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Service area ---------- */
.area-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.area-groups-grid {
  columns: 2;
  column-gap: 32px;
}
.area-group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.area-group h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--forest);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.area-text {
  font-size: 0.98rem;
  color: var(--ink);
  max-width: none;
  margin: 0 0 28px;
}
@media (max-width: 780px) {
  .area-block { grid-template-columns: 1fr; }
  .area-groups-grid { columns: 1; }
}

/* ---------- Testimonial-style quote (network) ---------- */
.network-box {
  background: var(--slate-deep);
  color: var(--cream);
  border-radius: 4px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.network-box p { color: #D8DED9; margin-bottom: 0; }
.network-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.network-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .network-box { grid-template-columns: 1fr; text-align: left; padding: 32px 24px; }
  .network-photo { order: -1; }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 30px 20px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-deep);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p {
  max-width: 68ch;
  padding-bottom: 22px;
  margin: -4px 0 0;
}
@media print {
  .faq-item:not([open]) summary ~ * { display: block !important; }
  .faq-item { break-inside: avoid; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
}
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:last-child { border-bottom: none; }
.contact-line svg { color: var(--forest); flex: none; margin-top: 2px; }
.contact-line a { text-decoration: none; font-weight: 700; color: var(--slate-deep); }
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--slate-deep);
  color: #A9B3AE;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
footer.site a { color: #D8DED9; text-decoration: none; }
footer.site a:hover { color: var(--gold); }
footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 100px; }
.legal .wrap { max-width: 780px; }
.legal h2 { margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .fillme {
  background: #FFF4DA;
  border: 1px dashed var(--gold-deep);
  padding: 2px 6px;
  border-radius: 2px;
}

/* ---------- Draft preview banner (PDF only, not part of the live site) ---------- */
.draft-banner {
  background: var(--gold);
  color: var(--slate-deep);
  padding: 14px 28px;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}
.draft-banner strong { font-size: 0.9rem; }
.draft-banner span { opacity: 0.85; }
.preview-mode header.site { position: static; }

@media print {
  body { background: var(--cream); }
  .draft-banner { break-after: avoid; }
  .service-item, .step, .contact-card, .hero-card, .hero-photo,
  .about-grid, .network-box, .faq-item { break-inside: avoid; }
  section { padding: 40px 0; }
}
