/* Altes Postamt Alsfeld – statische Seite, ohne externe Ressourcen */
:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --ink: #1f1c18;
  --muted: #6a6257;
  --line: #e4d9c8;
  --accent: #a3302b;      /* Fensterläden-Rot */
  --accent-ink: #ffffff;
  --accent-soft: #f3dfd9;
  --dark: #0b0b12;        /* NXTL */
  --dark-ink: #f4f4f8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 28, 24, .08);
  --wrap: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 234, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 600 1.12rem/1.1 var(--serif); }
.brand small { display: block; font: 500 .7rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { background: var(--accent-soft); }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); margin-left: 6px; }
.nav .nav-cta:hover { background: #8a2722; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 18px; gap: 2px; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #8a2722; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 12, 10, .55) 0%, rgba(15, 12, 10, .15) 60%, rgba(15, 12, 10, 0) 100%), linear-gradient(180deg, rgba(15, 12, 10, .05) 0%, rgba(15, 12, 10, .25) 45%, rgba(15, 12, 10, .78) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 64px; }
.hero .eyebrow { color: #ffd9c9; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40ch; color: rgba(255, 255, 255, .92); }
.hero .btn-ghost { color: #fff; }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.facts li { background: var(--accent-soft); color: #6d1f1b; border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; background: var(--surface); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-row: span 2; aspect-ratio: 4 / 5; }
.gallery img:not(:first-child) { aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; } }

/* Angebots-Karten */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card div { padding: 18px 20px 22px; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.card.card-dark { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.card.card-dark p { color: #b9b9c8; }
.card.card-dark .more { color: #7dd8f0; }

/* Preise / Listen */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.4rem 0; }
@media (max-width: 480px) { .price-grid { grid-template-columns: 1fr; } }
.price { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.section-alt .price { background: var(--bg); }
.price strong { display: block; font: 600 1.9rem/1.1 var(--serif); margin: 4px 0; }
.price span { font-size: .9rem; color: var(--muted); }
.price .label { font-weight: 700; color: var(--ink); font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
@media (max-width: 480px) { .checklist { grid-template-columns: 1fr; } }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; color: #4a1b17; }

/* Next Level */
.nextlevel { background: radial-gradient(1200px 500px at 85% 0%, rgba(139, 92, 246, .28), transparent 60%), radial-gradient(900px 400px at 0% 100%, rgba(34, 211, 238, .18), transparent 60%), var(--dark); color: var(--dark-ink); }
.nextlevel .eyebrow { color: #7dd8f0; }
.nextlevel .lead, .nextlevel p { color: #c8c8d6; }
.nextlevel a { color: #9fe6f6; }
.nxtl-logo { width: 150px; height: auto; margin-bottom: 1.4rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.tiles a { display: block; padding: 16px 18px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 600; transition: background .15s, border-color .15s; }
.tiles a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(125, 216, 240, .6); }
.tiles small { display: block; font-weight: 400; color: #a9a9bc; font-size: .85rem; margin-top: 2px; }
.nextlevel .photo { box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.nextlevel .photo img { aspect-ratio: 1 / 1; }
.nextlevel .btn-primary { background: linear-gradient(120deg, #22d3ee, #8b5cf6); color: #0b0b12; }

/* Unternehmen */
.companies { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.companies li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-height: 104px; display: flex; flex-direction: column; justify-content: center; }
.section-alt .companies li { background: var(--bg); }
.companies strong { display: block; font: 600 1.25rem/1.2 var(--serif); }
.companies span { display: block; margin-top: 4px; }
.companies span { color: var(--muted); font-size: .92rem; }
.companies a { color: inherit; text-decoration: none; }
.companies a:hover strong { color: var(--accent); }

/* Anfahrt / Kontakt */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info h3 { font-size: 1.2rem; }
.info p:last-child { margin-bottom: 0; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { flex: 0 0 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); font-size: 1.1rem; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.mail-topics { display: grid; gap: 10px; }
.mail-topics a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.mail-topics a:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { background: #1f1c18; color: #d9d2c6; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-grid nav a { margin-right: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; filter: invert(1); }

/* Rechtsseiten */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal address { font-style: normal; }
.back-link { font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
