/* rfi-gmbh.com – Graphit, Stein, Bordeaux; Source Serif 4 + Source Sans 3 (selbst gehostet) */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-var.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3-var.woff2") format("woff2"); }

:root {
  --graphite: #232A33;
  --graphite-2: #2F3742;
  --stone: #F3F0EA;
  --stone-2: #E8E3D9;
  --bordeaux: #7A2632;
  --bordeaux-2: #922F3D;
  --muted: #5E6670;
  --line: #DDD6CA;
  --white: #ffffff;
  --danger: #a3261d;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--graphite); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: var(--graphite); letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--bordeaux); }
.small { font-size: .92rem; color: var(--muted); }
.mt { margin-top: 1.6em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--stone { background: var(--stone); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.24rem); color: var(--muted); max-width: 60ch; }
.sub { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); margin-top: -.3em; }
.link { font-weight: 600; text-decoration: none; color: var(--bordeaux); }
.link::after { content: " →"; }
.link:hover { color: var(--bordeaux-2); text-decoration: underline; }
.note { border-left: 3px solid var(--bordeaux); padding: 4px 0 4px 18px; color: var(--muted); font-size: .98rem; max-width: 820px; margin: 36px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border: 1.5px solid transparent; border-radius: 2px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--graphite); color: var(--white); }
.btn--primary:hover { background: var(--bordeaux); }
.btn--ghost { border-color: var(--graphite); color: var(--graphite); }
.btn--ghost:hover { background: var(--stone); }
.btn--light { background: var(--white); color: var(--graphite); }
.btn--light:hover { background: var(--stone); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Kopfzeile */
.header { position: sticky; top: 0; z-index: 50; background: rgba(243, 240, 234, .97); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.logo__mark { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .06em; color: var(--graphite); border-left: 4px solid var(--bordeaux); padding-left: 12px; line-height: 1; }
.logo__place { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bordeaux); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bordeaux); }
.nav .lang { font-weight: 400; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; font-size: .82rem; letter-spacing: .08em; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--graphite); margin: 6px 8px; }

/* Hero */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero__inner { position: relative; padding-top: clamp(72px, 11vw, 140px); padding-bottom: clamp(64px, 9vw, 112px); }
.hero__inner::before { content: ""; position: absolute; left: 0; top: clamp(72px, 11vw, 140px); bottom: clamp(64px, 9vw, 112px); width: 5px; background: var(--bordeaux); }
.hero__inner > * { margin-left: clamp(24px, 4vw, 56px); max-width: 860px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.coords { font-size: .78rem; letter-spacing: .2em; color: var(--muted); margin-top: 48px; margin-bottom: 0; }

.page-head { background: var(--stone); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 880px; }
.page-head .lead { margin-bottom: 0; }

/* Raster */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.trio__item { border-top: 2px solid var(--graphite); padding-top: 22px; }
.trio__item h3 { font-size: 1.32rem; }
.trio__item p { color: var(--muted); margin: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tile { background: var(--white); border: 1px solid var(--line); padding: 34px 34px 30px; }
.tile__tag { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 10px; }
.tile h3 { font-size: 1.8rem; }
.tile p { color: var(--muted); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split p { color: var(--muted); }
.facts { margin: 0; border-top: 2px solid var(--bordeaux); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }

.services { list-style: none; margin: 0; padding: 0; max-width: 940px; }
.services li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.services li:first-child { border-top: 1px solid var(--line); }
.services__n { font-family: var(--serif); font-size: 2.4rem; color: var(--bordeaux); line-height: 1; }
.services h2 { font-size: 1.6rem; }
.services p { color: var(--muted); margin: 0; }

.product { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.product__head h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: .3em; }
.specs { width: 100%; border-collapse: collapse; margin: 20px 0; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--line); }
.specs th { font-weight: 400; color: var(--muted); width: 42%; padding-right: 16px; }
.specs td { font-weight: 600; }

.cta { background: var(--graphite); color: var(--stone); padding: 64px 0; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { color: #c9ced6; margin: 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Formular */
.form-layout { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .req { color: var(--bordeaux); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--graphite); background: var(--white);
  padding: 11px 13px; border: 1px solid #c4bcae; border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bordeaux); outline: 2px solid rgba(122, 38, 50, .25); outline-offset: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: .88rem; margin: 6px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: .9rem; color: var(--muted); margin: 22px 0; }
.form-msg { background: #f6e3e3; color: var(--danger); padding: 14px 18px; }
.form-note { background: #fbf3dc; border: 1px solid #ebd8a2; padding: 14px 18px; }
.form-ok { background: var(--stone); border-left: 4px solid var(--bordeaux); padding: 28px 32px; }
.form-aside { background: var(--stone); padding: 28px; border-top: 3px solid var(--bordeaux); }
.form-aside p { color: var(--muted); }

/* Rechtsseiten */
.legal { padding: 64px 0 100px; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.ph { background: #fbeeb8; color: #6b5200; padding: 0 4px; font-weight: 600; }

/* Fußzeile */
.footer { background: var(--graphite); color: #c9ced6; font-size: .94rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 36px; }
.footer__mark { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--white); border-left: 4px solid var(--bordeaux); padding-left: 12px; line-height: 1; margin-bottom: 14px; }
.footer__label { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #e3b9bf; margin-bottom: 6px; }
.form-aside .footer__label { color: var(--bordeaux); }
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9aa2ad; }
.footer__links { display: flex; gap: 22px; }

/* Einblenden */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--stone); border-bottom: 1px solid var(--line); display: none; padding: 6px 28px 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .lang { align-self: flex-start; margin-top: 14px; border: 1px solid var(--line); padding: 4px 10px; }
  .nav-toggle { display: block; }
  .trio, .duo, .split, .product, .form-layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 6px 16px 18px; }
  .hero__inner > * { margin-left: 18px; }
  .form-grid, .footer__top { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .services li { grid-template-columns: 1fr; gap: 8px; }
  .tile { padding: 26px 22px; }
  .specs th { width: 46%; }
}

/* Umbrüche: nie mitten im Wort trennen, Überschriften ausgewogen umbrechen */
h1, h2, h3 { hyphens: manual; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
p, li, dd, td, th, summary { hyphens: manual; text-wrap: pretty; }
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
}
.nw { white-space: nowrap; }

/* Kontaktkarte der statischen Fassung (statt Anfrageformular) */
.kontaktkarte { background: var(--stone); border-top: 3px solid var(--bordeaux); padding: 32px; }
.kontaktkarte h2 { font-size: 1.6rem; }
.kontaktkarte__zeile { display: flex; flex-direction: column; gap: 2px; font-size: 1.3rem; font-family: var(--serif); margin-bottom: 18px; }
.kontaktkarte__zeile span { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bordeaux); }
.kontaktkarte__zeile a { color: var(--graphite); text-decoration: none; }
.kontaktkarte__zeile a:hover { color: var(--bordeaux); text-decoration: underline; }
