/* Hartmann Werbung – Stylesheet (ohne externe Ressourcen) */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --text: #1c1d1f;
  --muted: #55595e;
  --line: #dcdfe3;
  --accent: #027c95;      /* Petrol, abgeleitet vom alten Akzent #03c4eb, kontraststark (AA) */
  --accent-ink: #ffffff;
  --dark: #111213;
  --radius: 6px;
  --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p, ul { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }

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

/* Kopfbereich */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand { color: var(--text); text-decoration: none; line-height: 1.25; }
.brand strong { display: block; font-size: 1.15rem; }
.brand span { color: var(--muted); font-size: 0.9rem; }
.brand strong .accent { display: inline; color: var(--accent); font-size: inherit; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: 0.35rem 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 currentColor; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 0.75rem; }

.page-hero { position: relative; background: var(--dark); color: #fff; }
.page-hero img { width: 100%; height: clamp(12rem, 32vw, 24rem); object-fit: cover; opacity: 0.55; }
.page-hero .wrap { position: absolute; inset: auto 0 0 0; padding-bottom: 2rem; }
.page-hero h1 { margin: 0; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.page-hero .eyebrow { color: #9fe6f5; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1.4rem; border-radius: var(--radius); text-decoration: none; font-weight: 600;
  border: 2px solid var(--accent);
}
.btn:hover { background: var(--dark); border-color: var(--dark); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Abschnitte */
section { padding: 4rem 0; }
section.alt { background: var(--bg-alt); }

.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body ul { padding-left: 1.1rem; color: var(--muted); }
.card-body a.more { margin-top: auto; font-weight: 600; }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.gallery figure { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: contain; width: 100%; background: #fff; }
.gallery figcaption { padding: 0.6rem 0.9rem; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Text mit Porträt */
.with-portrait { display: grid; grid-template-columns: 1fr 18rem; gap: 3rem; align-items: start; }
.with-portrait.portrait-left { grid-template-columns: 16rem 1fr; }
.portrait { margin: 0; }
.portrait img { width: 100%; border-radius: var(--radius); }
/* Startseite: Porträt ragt zu einem Drittel ins Titelbild (Bildhöhe 24rem → 8rem + 4rem Abschnittsabstand) */
.portrait.overlap { position: relative; z-index: 1; margin-top: -12rem; }
.portrait figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

.contact-box { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
address { font-style: normal; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.4rem; }

/* Rechtstexte */
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }

/* Fußbereich */
.site-footer { background: var(--dark); color: #c9ccd0; padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: #fff; display: inline-block; padding: 0.35rem 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer p { margin: 0; }

@media (max-width: 52rem) {
  .contact-box { grid-template-columns: 1fr; }
  .with-portrait, .with-portrait.portrait-left { grid-template-columns: 1fr; gap: 1.5rem; }
  .with-portrait .portrait { order: -1; max-width: 14rem; }
  .portrait.overlap { margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}

/* Handy: kompaktes Menü, zweispaltige Beispiele */
@media (max-width: 36rem) {
  .site-header .wrap { padding-top: 0.75rem; padding-bottom: 0.5rem; gap: 0.25rem; }
  .brand strong { font-size: 1.05rem; }
  .brand span { font-size: 0.85rem; }
  .nav ul { gap: 0 0.9rem; }
  .nav a { font-size: 0.9rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery figcaption { padding: 0.5rem 0.6rem; font-size: 0.8rem; line-height: 1.4; }
}

@media print {
  .site-header .nav, .skip-link, .actions, .page-hero img { display: none; }
  .page-hero { background: none; color: #000; }
  .page-hero .wrap { position: static; }
  body { font-size: 11pt; }
}

.back { margin-top: 1.5rem; }
.note { margin-top: 2rem; color: var(--muted); }
