/* AmRing – Ambulanter Pflegedienst Nürnberg
   Mobile-first, keine Webfonts, keine Drittanbieter-Ressourcen */

:root {
  --petrol: #1b5e63;
  --petrol-dark: #123f43;
  --cream: #fbf7f0;
  --sand: #f1e9db;
  --terracotta: #b4532a;
  --terracotta-dark: #96431f;
  --ink: #1f2a2e;
  --muted: #4a5a5e;
  --line: #e2d8c6;
  --white: #ffffff;
  --focus: #b4532a;
  --focus-on-dark: #ffd9a8;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 63, 67, 0.06), 0 8px 24px rgba(18, 63, 67, 0.08);
  --shadow-hover: 0 2px 4px rgba(18, 63, 67, 0.08), 0 14px 32px rgba(18, 63, 67, 0.14);
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --maxw: 72rem;
  --header-h: 4.5rem;
}

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

html {
  font-size: 112.5%; /* 18px Basis */
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 4.5rem; /* Platz für mobile Anruf-Leiste */
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--petrol-dark);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.8vw, 1.45rem); }

p { margin: 0 0 1em; }
a { color: var(--petrol); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--terracotta-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--petrol-dark);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

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

/* ---------- Hinweis-Marker für Betreiber ---------- */
.pruefen {
  display: inline-block;
  background: #fff3b0;
  color: #5b4600;
  font: 700 0.72rem/1.3 var(--font-body);
  letter-spacing: 0.02em;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  vertical-align: middle;
  margin-inline: 0.25em;
}
.notice {
  background: #fff8d6;
  border: 1px solid #e6d27a;
  color: #4d3d00;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-secondary:hover { background: var(--petrol); color: var(--white); transform: translateY(-2px); }
.on-dark .btn-secondary { color: var(--cream); border-color: var(--cream); }
.on-dark .btn-secondary:hover { background: var(--cream); color: var(--petrol-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(18, 63, 67, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--petrol-dark); }
.brand img { height: 3rem; width: auto; }
.brand-text { font: 700 1.15rem/1.15 var(--font-head); }
.brand-text small { display: block; font: 600 0.72rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0 1rem;
  background: transparent;
  border: 2px solid var(--petrol);
  color: var(--petrol);
  border-radius: 999px;
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(18, 63, 67, 0.1);
  padding: 0.5rem var(--gutter) 1.2rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: block;
  padding: 0.85rem 0.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--terracotta-dark); }
.site-nav .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important;
    align-items: center;
    gap: 1.6rem;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul { display: flex; gap: 1.6rem; }
  .site-nav a:not(.btn) { border: 0; padding: 0.4rem 0; position: relative; }
  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.1rem;
    height: 2px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
  }
  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .btn { margin: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 38rem; height: 38rem;
  background: var(--sand);
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  z-index: -1;
}
.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.eyebrow {
  display: inline-block;
  font: 700 0.8rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 0; }

.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}
.facts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.facts strong { display: block; color: var(--petrol-dark); font-size: 1rem; }
.office-hours span { display: block; }
.office-hours-time { white-space: nowrap; }
@media (min-width: 40em) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.photo-ph {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(27, 94, 99, 0.07) 0 14px, rgba(27, 94, 99, 0.03) 14px 28px),
    var(--sand);
  border: 2px dashed var(--petrol);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--petrol-dark);
}
.photo-ph svg { width: 3rem; height: 3rem; margin: 0 auto 0.6rem; color: var(--petrol); }
.photo-ph strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.photo-ph span { font-size: 0.88rem; color: var(--muted); }

@media (min-width: 62em) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--petrol-dark); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .section-head p { color: #d5e3e2; }
.section-dark a { color: #ffe3c2; }

.grid { display: grid; gap: 1.3rem; }
@media (min-width: 40em) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :nth-child(4) { grid-column: 2 / span 2; }
  .grid-5 > :nth-child(5) { grid-column: 4 / span 2; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 0.4em; }
.card .tag { font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta-dark); display: block; margin-bottom: 0.7rem; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 3.2rem; height: 3.2rem;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--sand);
  color: var(--petrol);
  margin-bottom: 1rem;
}
.icon-badge svg { width: 1.6rem; height: 1.6rem; }

.check-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.check-list li { position: relative; padding: 0.35rem 0 0.35rem 2rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.72rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--petrol)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

.text-link { font-weight: 700; display: inline-block; margin-top: 1rem; }

/* ---------- Intro / Konzept ---------- */
.split { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 62em) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.value-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.value-list .num {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font: 700 1.1rem var(--font-head);
}
.value-list h3 { margin: 0 0 0.15em; font-size: 1.2rem; }
.value-list p { margin: 0; }
.section-dark .value-list p { color: #d5e3e2; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.2rem; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--white);
  font: 700 1.2rem var(--font-head);
  margin-bottom: 0.9rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Team ---------- */
#team { padding-block: clamp(2rem, 5vw, 3rem); }
#team .section-head { margin-bottom: 1.2rem; }
#team .section-head h2 { margin-bottom: 0; }
.team-card { display: grid; gap: 1.2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.team-card img { width: 100%; max-width: 16rem; height: 16rem; max-height: 18rem; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-sm); background: var(--sand); margin-inline: auto; }
.team-card h3 { margin-bottom: 0.3em; }
.team-card p { margin-bottom: 0.6rem; }
.team-card .role { color: var(--terracotta-dark); font-weight: 700; margin-bottom: 0.5rem; }
.team-card .check-list { margin: 0.6rem 0 1rem; }
.team-card .check-list li { padding-block: 0.2rem; }
.team-card .check-list li::before { top: 0.57rem; }
@media (min-width: 48em) {
  .team-card { grid-template-columns: 16rem minmax(0, 1fr); gap: 1.8rem; }
  .team-card img { height: 18rem; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; align-items: start; }
@media (min-width: 48em) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--petrol-dark);
  position: relative;
  min-height: 3.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font: 400 1.7rem/1 var(--font-body);
  color: var(--terracotta);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 1.3rem; }
@media (min-width: 62em) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; } }
.contact-card { background: var(--petrol); color: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); }
.contact-card h3 { color: var(--cream); }
.contact-card a { color: #ffe3c2; }
.contact-card a:hover { color: var(--white); }
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.9rem; align-items: start; }
.contact-list svg { width: 1.6rem; height: 1.6rem; color: #ffd9a8; margin-top: 0.2rem; }
.contact-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #cfe0df; }
.contact-list .big { font: 700 1.5rem/1.2 var(--font-head); }
.contact-note { display: flex; flex-direction: column; justify-content: space-evenly; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem); }
.contact-note > * { margin-block: 0; }
.contact-note .emergency { background: var(--sand); border-left: 5px solid var(--terracotta); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; margin-top: 0; }

/* ---------- Leistungsseite ---------- */
.page-hero { padding: clamp(2.2rem, 6vw, 4rem) 0 1.5rem; }
.subnav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.subnav a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--petrol);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.subnav a:hover { background: var(--petrol); color: var(--white); }
.service { padding: clamp(2rem, 5vw, 3rem) 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service-grid { display: grid; gap: 1.5rem; }
@media (min-width: 62em) { .service-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; } }
.service .check-list { columns: 1; }
@media (min-width: 40em) { .service .check-list { columns: 2; column-gap: 2rem; } .service .check-list li { break-inside: avoid; } }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(2rem, 6vw, 4rem) 0; max-width: 48rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal address { font-style: normal; }
.legal dl { margin: 0 0 1rem; }
.legal dt { font-weight: 700; margin-top: 0.8rem; }
.legal dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-dark); color: #d5e3e2; padding: 3rem 0 2rem; }
.site-footer a { color: #ffe3c2; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font: 700 0.85rem/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: #ffd9a8; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.88rem; }

/* ---------- Mobile Anruf-Leiste ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(251, 247, 240, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(18, 63, 67, 0.1);
}
.call-bar .btn { min-height: 3.1rem; padding-inline: 0.8rem; font-size: 0.98rem; }
@media (min-width: 62em) {
  .call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Scroll-Einblenden (nur mit JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

@media print {
  .site-header, .call-bar, .nav-toggle { display: none; }
  body { background: #fff; padding: 0; }
}

/* Hero-Motiv */
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: var(--radius); }
.hero-photo figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; max-width: calc(100% - 1.5rem); margin: 0; padding: 0.3rem 0.6rem; border-radius: 6px; background: rgba(18, 63, 67, 0.9); color: var(--white); font-size: 0.75rem; line-height: 1.4; }
