/* Robert Wenner GmbH – Stylesheet
   Aufbau „Modern“ (10.10.2026), Schriften wie bisher: Palatino Linotype (Überschriften), Segoe UI (Text) */

:root {
  --navy: #003060;
  --navy-deep: #00203f;
  --petrol: #006382;
  --teal: #6bbfc0;
  --text: #1d2731;
  --muted: #48545f;
  --line: #d8e0e7;
  --line-strong: #74848f;
  --paper: #f3f6f8;
  --tint: #e8eff3;
  --on-navy: #e1eaf2;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --measure: 60ch;
  --tick-petrol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006382' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --tick-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236bbfc0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }

/* Fokus: auf hellem Grund Navy, auf dunklem Grund Türkis (jeweils >= 3:1) */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible, .callbtn:focus-visible { outline-color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap > * { min-width: 0; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: 2.2rem; }
section { padding: 56px 0; }
p, li { max-width: var(--measure); }
.lead { font-size: 1.12rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; }

/* Buttons (modern: abgerundet) */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--petrol); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--tint); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--teal); }

/* Häkchen-Listen */
.ticks, .checks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li, .checks li { position: relative; padding-left: 30px; margin: 9px 0; }
.ticks li::before, .checks li::before { content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; background: var(--tick-petrol) center / contain no-repeat; }
.dark .ticks li::before { background-image: var(--tick-teal); }

/* Kopfbereich – Logo verkleinert sich beim Scrollen */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.site-header .logo img { height: 92px; width: auto; transition: height .25s ease-out; }
.site-header.scrolled .logo img { height: 56px; }
.nav-main { display: flex; gap: 24px; align-items: center; }
.nav-main a { text-decoration: none; color: var(--navy); font-size: .98rem; font-weight: 600; padding: 10px 0; }
.nav-main a:hover { color: var(--petrol); text-decoration: underline; }
.nav-main .tel { color: var(--petrol); white-space: nowrap; font-size: 1rem; }
.nav-mobile { display: none; }

/* Hero: großer Text links auf Weiß, Foto rechts bis zum Rand */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 540px; padding: 0; }
.hero .text { padding: 48px 56px 48px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 2.5rem; line-height: 1.15; hyphens: manual; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero .pic { position: relative; background: #dfe4e8; min-height: 360px; }
.hero .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.assure { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--tick-petrol) center / contain no-repeat; }

/* Dunkle Flächen */
.dark { background: var(--navy); color: var(--on-navy); }
.dark h2, .dark h3, .dark h4 { color: #fff; }

/* Nachfolge: Text 5/12, Foto 7/12 */
.succession .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.succession .photo { order: -1; }
.succession .ticks { margin-bottom: 26px; }
.succession .handover { display: block; width: 100%; height: auto; border-radius: 4px; margin-bottom: 22px; }
/* Desktop: Foto links wächst mit der Textspalte (die durch das Übergabe-Foto höher ist) */
@media (min-width: 961px) {
  .succession .photo { align-self: stretch; max-height: none; aspect-ratio: auto; }
  .succession .photo img { object-position: 35% 0; }
}
.succession .photo { border-radius: 4px; overflow: hidden; aspect-ratio: 1000 / 975; max-height: 580px; }
.succession .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* Vorgehen: Prozess mit Verbindungslinie */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; position: relative; align-items: start; }
.process::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 2px; background: var(--line); }
.stage { position: relative; }
.stage .n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 1.35rem; position: relative; box-shadow: 0 0 0 6px #fff; }
.stage h3 { font-size: 1.5rem; margin-top: 18px; }
.stage p { color: var(--muted); margin: 0 0 8px; }
.stage ul { color: var(--muted); padding-left: 20px; margin: 0 0 10px; }

/* Vorgehen mit Foto: Foto links (läuft mit), Schritte rechts untereinander */
.steps-section .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.work-photo { margin: 0; position: sticky; top: 104px; }
.work-photo img { width: 100%; border-radius: 4px; }
.steps-section .process { grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
.steps-section .process::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
.steps-section .stage { padding-left: 72px; }
.steps-section .stage .n { position: absolute; left: 0; top: 0; }
.steps-section .stage h3 { margin-top: 8px; }

/* Aufklapp-Elemente: einheitlicher Pfeil-Kreis */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.more summary { color: var(--petrol); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.more summary:hover { text-decoration: underline; }
.more summary::after, .chev { content: ""; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003060' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .2s ease-out; }
.more[open] summary::after, details[open] > summary .chev { transform: rotate(180deg); }
.more .lbl-open, .more[open] .lbl-closed { display: none; }
.more[open] .lbl-open { display: inline; }

/* Leistungen: drei Spalten nebeneinander */
.services { background: var(--paper); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.col { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 22px 22px 6px; }
.col h3 { font-size: 1.5rem; margin-bottom: 6px; }
.item { border-top: 1px solid var(--line); }
.item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; min-height: 56px; }
.item .t { font-family: var(--serif); font-size: 1.22rem; color: var(--navy); line-height: 1.25; }
.item summary:hover .t { color: var(--petrol); }
.item .body { padding: 0 0 16px; }
.item .body p { margin: 0 0 10px; }
.item .body .short { color: var(--muted); font-style: italic; }
.item .body ul { padding-left: 20px; margin: 0 0 10px; }
.item .body h4 { font-size: 1.12rem; margin: 14px 0 4px; }

/* Über uns: Foto + Zitat links (läuft beim Scrollen mit), Inhalt rechts */
.about .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.about aside { position: sticky; top: 104px; }
.about aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 4px; }
.quote { margin: 18px 0 0; padding: 20px 22px; background: var(--navy); border-radius: 4px; }
.quote p { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin: 0 0 10px; }
.quote footer { color: var(--teal); font-weight: 700; font-size: .98rem; }
.about h3 { font-size: 1.45rem; margin-top: 26px; }
.cv { list-style: none; margin: 6px 0 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); max-width: none; }
.cv li:last-child { border-bottom: 1px solid var(--line); }
.cv .when { font-family: var(--serif); color: var(--petrol); font-size: 1.08rem; white-space: nowrap; }
.drive { margin: 22px 0 0; padding: 14px 18px; background: var(--tint); border: 1px solid var(--line); color: var(--navy); }
/* Video: erst nach Klick von Vimeo laden (Zwei-Klick-Lösung) */
.video { max-width: 520px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 4px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consent { position: relative; display: block; width: 100%; height: 100%; padding: 0; background: var(--navy); color: #fff; border: 0; cursor: pointer; font: inherit; text-align: left; }
.video-consent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.video-consent > * { z-index: 2; }
.video-consent img { z-index: 0; }
.video-consent::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 32, 63, .96) 0%, rgba(0, 32, 63, .85) 26%, rgba(0, 32, 63, 0) 55%); }
.video-consent:focus-visible { outline: 3px solid var(--teal); outline-offset: -6px; }
.video-consent .play { position: absolute; left: 16px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: background .2s; }
.video-consent:hover .play { background: var(--teal); }
.video-consent .play::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--navy); }
.video-consent .caption { position: absolute; left: 82px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 0; line-height: 1.35; }
/* Eigene Steuerleiste unter dem Video (immer sichtbar, auch auf dem Handy) */
.video-bar { display: flex; align-items: center; gap: 4px; padding: 0 4px; background: var(--navy); color: #fff; border-radius: 0 0 4px 4px; }
.video-bar[hidden] { display: none; }
.video-bar button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 4px; color: #fff; cursor: pointer; }
.video-bar button:hover { background: rgba(255, 255, 255, .14); }
.video-bar button:focus-visible, .vb-seek:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.video-bar svg { width: 22px; height: 22px; fill: currentColor; }
.vb-seek { flex: 1; min-width: 60px; height: 44px; margin: 0 4px; accent-color: var(--teal); cursor: pointer; }
.vb-time { flex: none; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--on-navy); white-space: nowrap; }
.video-frame:has(iframe) { border-radius: 4px 4px 0 0; }
.video:fullscreen { max-width: none; display: flex; flex-direction: column; background: #000; }
.video:fullscreen .video-frame { flex: 1; aspect-ratio: auto; border-radius: 0; }
.video:-webkit-full-screen { max-width: none; width: 100%; height: 100%; display: flex; flex-direction: column; background: #000; }
.video:-webkit-full-screen .video-frame { flex: 1; aspect-ratio: auto; border-radius: 0; }
@media (max-width: 360px) { .vb-pip { display: none !important; } }
.video-error { margin: 0; padding: 12px 14px; background: var(--navy); color: #fff; border-radius: 0 0 4px 4px; }
.video-error a { color: var(--teal); }
.video-consent .brand { font-family: var(--serif); font-size: 1.25rem; }
.creds { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.credential { display: flex; align-items: center; gap: 16px; max-width: 460px; }
.credential img { height: 60px; width: auto; flex: none; }
.credential p { margin: 0; font-size: 1rem; }
.creds a img { height: 60px; width: auto; }

/* Kundenstimmen */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; margin-top: 26px; }
.v { margin: 0; border-top: 2px solid var(--teal); padding-top: 16px; }
.v blockquote { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 10px; color: #fff; }
.v figcaption { color: var(--teal); font-weight: 700; font-size: 1rem; }
.proof { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; color: #fff; font-weight: 700; text-decoration: underline; }
.proof img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 4px; }

/* Kontakt */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head act" "info act"; gap: 0 48px; align-items: center; }
.contact h2 { grid-area: head; align-self: end; }
.contact-info { grid-area: info; align-self: start; }
.contact-actions { grid-area: act; }
.person { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 45% 30%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,32,63,.15); }
.person strong { display: block; color: var(--navy); font-size: 1.1rem; }
.person span { color: var(--muted); }
.tiles { display: grid; gap: 12px; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.tile:hover { border-color: var(--navy); background: var(--tint); }
.tile small { display: block; color: var(--muted); font-size: 1rem; }
.tile strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--navy); line-height: 1.25; }
.tile .mail { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; overflow-wrap: anywhere; }
.tile .go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
.tile:hover .go { background: var(--petrol); }
.tile .pref { display: inline-block; margin-left: 6px; font-size: 1rem; font-style: italic; color: var(--petrol); white-space: nowrap; }
.tile .go::before { content: ""; width: 18px; height: 18px; background: center / contain no-repeat; }
.tile.tel .go::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.tile.em .go::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.address { margin-top: 14px; color: var(--muted); }

/* Unterseiten (Impressum, Datenschutz) */
.legal { padding: 32px 0 48px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 1.4em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.2em; }
.legal p, .legal li { color: var(--text); }
.todo { background: #fff4d6; border: 1px solid #c99a00; padding: 1px 6px; font-weight: 600; color: #5c4500; }
.note { background: var(--tint); border: 1px solid var(--line); padding: 14px 18px; margin: 18px 0; max-width: var(--measure); }

/* Fußbereich */
.site-footer { background: var(--navy-deep); color: #d3dee8; padding: 22px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }

.callbtn { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01s !important; }
}

@media (max-width: 960px) {
  h2 { font-size: 1.75rem; }
  html { scroll-padding-top: 80px; }
  section { padding: 40px 0; }
  .site-header .logo img, .site-header.scrolled .logo img { height: 56px; }
  .nav-main { display: none; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); color: var(--navy); font-weight: 700; }
  .nav-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0,32,63,.15); display: flex; flex-direction: column; min-width: 220px; padding: 6px 0; }
  .nav-mobile nav a { padding: 12px 18px; color: var(--navy); text-decoration: none; font-weight: 600; }
  .nav-mobile nav a:hover { background: var(--tint); }
  .nav-mobile nav .tel { color: var(--petrol); border-top: 1px solid var(--line); margin-top: 4px; }
  .hero, .succession .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero .pic { order: -1; min-height: 280px; }
  .hero .text { padding: 28px 24px 34px; }
  .hero h1 { font-size: 1.8rem; }
  .process, .cols, .vgrid { grid-template-columns: 1fr; }
  .process::before { display: none; }
  .steps-section .wrap { grid-template-columns: 1fr; gap: 24px; }
  .work-photo { position: static; }
  .work-photo img { max-height: 420px; object-fit: cover; object-position: 50% 15%; }
  .steps-section .process::before { display: block; }
  .about aside { position: static; }
  .cv li { grid-template-columns: 1fr; gap: 0; }
  .contact .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "act" "info"; gap: 0; }
  .contact-actions { margin-bottom: 26px; }
  .tile strong { font-size: 1.3rem; }
  .tile .mail { font-size: 1rem; }
  .tile .go { padding: 12px; font-size: 0; gap: 0; }
  .tile .go::before { width: 20px; height: 20px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .callbtn { display: inline-flex; align-items: center; min-height: 48px; position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); background: var(--petrol); color: #fff; padding: 12px 20px; border-radius: 30px; font-weight: 700; text-decoration: none; z-index: 50; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: opacity .25s ease-out, transform .25s ease-out; }
  .js .callbtn { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .js.show-call .callbtn { opacity: 1; transform: none; pointer-events: auto; }
}
