/* römmich GmbH – statischer Nachbau (ersetzt OceanWP + Elementor) */

@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/opensans-var-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --dark: #202022;
  --white: #ffffff;
  --text: #333333;
  --line: #3a3a3d;
  --max: 1200px;
}

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

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

/* Weicher Übergang zwischen den Seiten statt weißem Aufblitzen (Chrome/Edge/Safari 18.2+) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
.site-header { view-transition-name: header; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 25px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.home { background: var(--dark); color: var(--white); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--dark); padding: 8px 16px; z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--dark);
  color: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; min-height: 58px; }
.site-header .brand { font-size: 20px; font-weight: 400; text-decoration: none; }

/* Startseite – Hero */
.hero { text-align: center; padding: 70px 16px 20px; border-bottom: 1px solid var(--line); }
.hero h1 {
  margin: 0 0 30px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.1;
  font-weight: 700;
}
.hero p {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.3;
  font-weight: 600;
}

/* Angebots-Kacheln */
.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px 0 40px;
}
.offer-media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.offer-media .photo { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: filter .25s; }
.offer-media .logo {
  position: absolute; inset: 0; margin: auto;
  width: 62%; height: auto; max-height: 80%; object-fit: contain;
}
.offer-media:hover .photo, .offer-media:focus-visible .photo { filter: brightness(.55); }
.offer-media:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.offers ul { margin: 18px 0 0; padding-left: 22px; }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding: 20px 0 30px;
}
.contact .icon {
  display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--dark); color: var(--white);
}
.contact .icon svg { width: 28px; height: 28px; fill: currentColor; }
.contact h2 { margin: 10px 0 18px; font-size: 20px; font-weight: 400; font-style: italic; }
.contact h2 a, .contact p a { text-decoration: none; }
.contact h2 a:hover, .contact p a:hover { text-decoration: underline; }
.contact p { margin: 0; font-size: 16px; }

.legal-links { text-align: center; padding: 0 0 40px; font-size: 16px; }
.legal-links a { display: block; padding: 6px 0; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* Rechtstexte */
.legal { padding-top: 90px; padding-bottom: 60px; font-size: 14px; line-height: 1.6; }
.legal h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.1; font-weight: 700; color: #000; margin: 0 0 24px; }
.legal h2 { font-size: 13px; font-weight: 400; margin: 24px 0 12px; }
.legal h3 { font-size: 13px; font-weight: 400; margin: 24px 0 12px; }
.legal p { margin: 0 0 14px; overflow-wrap: anywhere; }

/* Nach-oben-Link (ohne JavaScript) */
.to-top {
  position: fixed; right: 16px; bottom: 16px;
  width: 36px; height: 36px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); color: var(--white); text-decoration: none;
}
.to-top:hover { background: rgba(0,0,0,.6); }
.to-top svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 767px) {
  .offers, .contact { grid-template-columns: 1fr; }
  .offers { gap: 36px; }
  .hero { padding-top: 40px; }
  .legal { padding-top: 50px; }
}

/* Klickbare Kontaktdaten (tools/linkify.py) */
.rc-link{color:inherit}
.rc-underline,.rc-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent)}
.rc-link:hover,.rc-geo button.rc-underline:hover{text-decoration-color:currentColor}
.rc-geo button.rc-geo-btn{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;text-align:inherit;line-height:inherit;cursor:pointer;display:inline;min-height:0}
.rc-geo button.rc-geo-btn:hover,.rc-geo button.rc-geo-btn:focus{background:none;box-shadow:none}
.rc-geo button.rc-geo-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@supports not selector(:popover-open){
.rc-geo-pop{display:inline;font-size:.85em}
.rc-geo-pop .rc-geo-title,.rc-geo-pop .rc-geo-close{display:none}
.rc-geo-pop a.rc-geo-opt{margin-left:.6em;text-decoration:underline}
}
@supports selector(:popover-open){
.rc-geo .rc-geo-pop{position:fixed;inset:0;margin:auto;width:min(340px,calc(100vw - 32px));height:fit-content;max-height:calc(100vh - 32px);border:0;border-radius:14px;padding:20px;background:#fff!important;color:#333!important;box-shadow:0 12px 48px rgba(0,0,0,.28);font:400 16px/1.4 "Open Sans",system-ui,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;text-align:center!important}
.rc-geo .rc-geo-pop:popover-open{display:flex;flex-direction:column;gap:10px}
.rc-geo .rc-geo-pop::backdrop{background:rgba(0,0,0,.4)}
.rc-geo .rc-geo-title{display:block;font-weight:600;color:#333;margin:0 0 6px}
.rc-geo .rc-geo-pop a.rc-geo-opt{display:block;padding:13px 16px;border-radius:10px;background:#f1f1f1!important;color:#1a1a1a!important;font-weight:600!important;font-size:16px!important;text-decoration:none!important}
.rc-geo .rc-geo-pop a.rc-geo-opt:hover,.rc-geo .rc-geo-pop a.rc-geo-opt:focus-visible{background:#e3e3e3!important}
.rc-geo .rc-geo-pop button.rc-geo-close{-webkit-appearance:none;appearance:none;margin:4px 0 0;padding:10px;border:0;border-radius:10px;background:none!important;color:#666!important;font:inherit!important;cursor:pointer}
.rc-geo .rc-geo-pop button.rc-geo-close:hover{color:#000!important}
}
