/* Fliesen Plaster – statische Version (10/2026). Hauptfarbe #01597D, Akzent #01cc35 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #01597D;
  --primary-dark: #013f59;
  --overlay: #21597C;
  --accent: #01cc35;
  --text: #1f2a33;
  --muted: #5b6770;
  --line: #e3e8ec;
  --bg-soft: #f4f7f9;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(1, 40, 60, .08);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--primary-dark); margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem); margin-top: 1.6em; }
h1 + h2 { margin-top: -.2em; font-weight: 500; color: var(--muted); font-size: 1.25rem; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
h1 strong, h2 strong { font-weight: inherit; }
p, ul { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
li::marker { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: #fff; border: 2px solid var(--primary);
  padding: .7em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 600; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn--light { background: #fff; color: var(--primary); border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-dark); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Topbar + Header */
.topbar { background: var(--primary-dark); color: #fff; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar-cta { font-weight: 600; border-bottom: 2px solid var(--accent); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.logo img { height: 60px; width: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; border-radius: 6px; }
.main-nav a:hover, .main-nav .is-active > a { color: var(--primary); }
.main-nav > ul > .is-active > a { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.main-nav .sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { padding: 8px 12px; }
.main-nav .sub a:hover, .main-nav .sub [aria-current] { background: var(--bg-soft); }
.sub-toggle, .nav-toggle { display: none; }

/* Hero mit Overlay */
.hero { position: relative; height: clamp(240px, 32vw, 440px); overflow: hidden; background: var(--bg-soft); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vw, 48px); max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero-caption span { display: inline-block; background: var(--overlay); color: #fff; text-shadow: none;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 700; padding: .35em .8em; border-radius: 4px; }

/* Inhalt */
.main { padding: clamp(36px, 6vw, 72px) 0; }
.main .wrap > .article { max-width: 860px; margin-left: auto; margin-right: auto; }
.main .wrap > .article + .article { margin-top: 1.5em; }
.ce-text::after { content: ""; display: table; clear: both; }
.figure { margin: 0 0 1.2em; }
.figure img { border-radius: var(--radius); }
.figure.float-right { float: right; max-width: 42%; margin: .3em 0 1em 2em; }
.figure.float-left { float: left; max-width: 42%; margin: .3em 2em 1em 0; }

/* Startseite */
.page-startseite #introtxt { text-align: center; max-width: none; margin-bottom: 2em; }
.page-startseite #introtxt h2 { margin-top: 0; }
.page-startseite #colset { max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 3em; }
.page-startseite #colset .ce-text { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.page-startseite #colset .ce-text:hover { transform: translateY(-3px); }
.page-startseite #colset h3 { order: 2; margin: 18px 22px 4px; }
.page-startseite #colset .figure { order: 1; margin: 0; }
.page-startseite #colset .figure img { border-radius: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-startseite #colset p { order: 3; margin: 0 22px 22px; }
a.link { font-weight: 600; text-decoration: none; }
a.link::after { content: " →"; color: var(--accent); }

/* Galerien */
.main .wrap > .article:has(.gallery) { max-width: 1000px; }
.gallery { list-style: none; padding: 0; margin: 1em 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery .figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border-radius: 8px; }
.gallery img { width: 100%; aspect-ratio: 32 / 15; object-fit: cover; border-radius: 8px; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 22, 32, .92); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lb .lb-close { top: 10px; right: 10px; }
.lb .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Kontakt */
.page-kontakt .main .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.page-kontakt .main .wrap > .article { max-width: none; margin: 0; }
.page-kontakt #kontakt .ce-text { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; }
.page-kontakt #kontakt h3 { margin-top: 0; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.page-kontakt #kontakt h2 { margin-top: 0; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: 11px 14px; border: 1px solid #c9d3da; border-radius: 8px; width: 100%; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); }
.contact-form .check input { width: auto; margin-top: 4px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 500; }
.form-status.ok { background: #e6f9ec; color: #0b5e25; border: 1px solid #9fe3b4; }
.form-status.err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3b4b4; }

/* CTA + Footer */
.cta-band { background: var(--primary); color: #fff; padding: 44px 0; }
.cta-band .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { background: #0f2c3b; color: #c8d5dc; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.fb::before { content: "f"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 4px;
  background: #fff; color: #0f2c3b; font-weight: 700; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .85rem; color: #93a6b0; }

/* Mobil */
@media (max-width: 1080px) {
  .nav-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--primary-dark); content: ""; transition: .2s; }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before { left: 0; top: -7px; }
  .nav-toggle span:first-child::after { left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
  .main-nav { position: fixed; inset: 0 0 0 auto; top: var(--header-h, 84px); width: min(360px, 100%); background: #fff;
    border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(100%); transition: transform .25s; padding: 12px 0 40px; }
  .main-nav.is-open { transform: none; box-shadow: var(--shadow); }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 13px 22px; font-size: 1rem; border-radius: 0; }
  .main-nav > ul > .is-active > a { box-shadow: inset 3px 0 0 var(--accent); }
  .main-nav .has-sub { display: grid; grid-template-columns: 1fr auto; }
  .sub-toggle { display: block; width: 52px; border: 0; background: none; cursor: pointer; }
  .sub-toggle::before { content: ""; display: block; width: 9px; height: 9px; margin: auto; border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: .2s; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
  .main-nav .sub { grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; background: var(--bg-soft); padding: 4px 0; display: none; }
  .main-nav .sub.is-open { display: block; }
  .main-nav .sub a { padding-left: 38px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .topbar .wrap { justify-content: center; gap: 6px 16px; padding-top: 6px; padding-bottom: 6px; }
  .topbar a[href^="mailto"] { display: none; }
  .site-header .wrap { min-height: 68px; }
  .logo img { height: 46px; }
  .page-startseite #colset { grid-template-columns: 1fr; }
  .page-kontakt .main .wrap { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .figure.float-right, .figure.float-left { float: none; max-width: 100%; margin: 0 0 1.2em; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
