/* InstaSan Haustechnik e.U. – Website */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #e5173f;
  --red-dark: #c10f32;
  --red-soft: #fde8ec;
  --blue: #0f5f96;
  --blue-dark: #0a3d63;
  --blue-deep: #071f33;
  --blue-soft: #e8f3fb;
  --sky: #5fb4e6;
  --ink: #0d1b2a;
  --text: #33465a;
  --muted: #6b7c8f;
  --line: #e3eaf1;
  --bg: #ffffff;
  --bg-alt: #f5f9fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 27, 42, 0.04), 0 8px 24px rgba(13, 27, 42, 0.06);
  --shadow-lg: 0 2px 4px rgba(13, 27, 42, 0.04), 0 24px 48px rgba(13, 27, 42, 0.12);
  --max: 1180px;
  --green: #0f9d6b;
  --green-soft: #e3f7ef;
  --amber: #b86a00;
  --amber-soft: #fff4e0;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(229, 23, 63, 0.28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: 0 10px 26px rgba(229, 23, 63, 0.36); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c3047; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px #c5d3e0; }
.btn-light { background: rgba(255,255,255,0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.btn-light:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(13,27,42,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--red); }
.brand-sub { font-size: 0.78rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); font-weight: 550; font-size: 0.97rem; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--bg-alt); }
.nav .btn { margin-left: 10px; padding: 11px 20px; font-size: 0.95rem; }
.nav .btn:hover { background: var(--red-dark); color: #fff; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(13,27,42,0.1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; padding: 15px; }
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(95, 180, 230, 0.22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(229, 23, 63, 0.07), transparent 60%),
    linear-gradient(180deg, #f3f9fd 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 22px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero h1 .accent { color: var(--red); }
.hero h1 .water { background: linear-gradient(100deg, var(--blue) 0%, var(--sky) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.22rem; color: var(--text); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 0.97rem; }
.hero-points svg { width: 20px; height: 20px; color: var(--green); flex: none; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: 28px; background: #fff; padding: 22px; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero-card img { border-radius: 18px; width: 100%; aspect-ratio: 646 / 614; object-fit: cover; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); font-weight: 650; color: var(--ink); font-size: 0.95rem;
  animation: bob 6s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; }
.float-chip .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-chip .ic svg { width: 22px; height: 22px; }
.chip-1 { left: -34px; bottom: 54px; }
.chip-1 .ic { background: var(--red-soft); color: var(--red); }
.chip-2 { right: -22px; top: 36px; animation-delay: -3s; }
.chip-2 .ic { background: var(--blue-soft); color: var(--blue); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .chip-1 { left: -8px; }
  .chip-2 { right: -8px; }
}
@media (max-width: 480px) {
  .lead { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-chip { font-size: 0.85rem; padding: 10px 12px; }
  .float-chip .ic { width: 34px; height: 34px; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 68px 0; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-head p { font-size: 1.12rem; color: var(--muted); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1060px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden;
}
.service::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--blue-soft); color: var(--blue);
}
.service:nth-child(2n) .icon { background: var(--red-soft); color: var(--red); }
.service .icon svg { width: 28px; height: 28px; }
.service p { color: var(--muted); margin: 0; font-size: 0.99rem; }

/* Über uns */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }
.about-text p { font-size: 1.1rem; }
.owner { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.owner .avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.owner strong { display: block; color: var(--ink); }
.owner span { color: var(--muted); font-size: 0.93rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }
.value { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.value .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; margin-bottom: 16px; }
.value .num svg { width: 22px; height: 22px; }
.value h3 { margin-bottom: 6px; }
.value p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Bezahlen-Band */
.pay-band { padding: 0; }
.pay-band-inner {
  position: relative; overflow: hidden; border-radius: 28px; padding: 56px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(95,180,230,0.35), transparent 60%), linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  color: #cfe3f2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.pay-band h2 { color: #fff; }
.pay-band p { font-size: 1.1rem; margin: 0; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pay-methods span { font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #fff; }
.code-form { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); }
.code-form label { display: block; font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.code-form .row { display: flex; gap: 10px; }
.code-form input { flex: 1; min-width: 0; }
.code-form small { display: block; color: var(--muted); margin-top: 10px; font-size: 0.86rem; }
@media (max-width: 860px) {
  .pay-band-inner { grid-template-columns: 1fr; padding: 36px 22px; border-radius: 22px; }
  .code-form .row { flex-direction: column; }
}

/* Kontakt */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; color: var(--ink); }
.contact-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.contact-card.red .ic { background: var(--red-soft); color: var(--red); }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.contact-card strong { font-size: 1.08rem; word-break: break-word; }
.emergency { margin-top: 6px; padding: 22px; border-radius: var(--radius); background: var(--red-soft); color: #7a0d22; }
.emergency strong { color: var(--red-dark); display: block; margin-bottom: 4px; font-size: 1.05rem; }
.emergency p { margin: 0; font-size: 0.97rem; }

.form-card { background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); }
@media (max-width: 600px) { .form-card { padding: 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.9rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-alt);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .15s, background .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(15,95,150,0.12); }
textarea { resize: vertical; min-height: 140px; }
.topic-group { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic-group label {
  margin: 0; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-size: 0.93rem; color: var(--text); transition: all .15s;
}
.topic-group input:checked + label { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.topic-group input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }
.form-note { font-size: 0.86rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: #9fb6c9; padding: 64px 0 28px; margin-top: 0; }
.footer a { color: #d6e6f2; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand-sub { color: #9fb6c9; display: block; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.9rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Unterseiten ---------- */
.page-hero { padding: 56px 0 36px; background: linear-gradient(180deg, #f3f9fd 0%, #fff 100%); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.page-body { padding: 24px 0 96px; }
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 20px; margin: 0; }
.legal dt { font-weight: 650; color: var(--ink); }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }
.todo { background: var(--amber-soft); color: var(--amber); padding: 1px 8px; border-radius: 6px; font-weight: 600; }

/* ---------- Bezahlseite ---------- */
.pay-wrap { max-width: 1020px; }
.lookup-card { max-width: 560px; background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
@media (max-width: 600px) { .lookup-card { padding: 22px; } }
.lookup-card .row { display: flex; gap: 10px; margin-top: 8px; }
@media (max-width: 520px) { .lookup-card .row { flex-direction: column; } }
.code-input { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.12em; text-transform: uppercase; font-size: 1.1rem; font-weight: 600; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 550; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alert-error { background: var(--red-soft); color: #8d0f28; }
.alert-info { background: var(--blue-soft); color: var(--blue-dark); }
.alert-warn { background: var(--amber-soft); color: #7a4600; }
.alert-success { background: var(--green-soft); color: #0b5e41; }

.loading { display: flex; align-items: center; gap: 14px; padding: 28px; color: var(--muted); font-weight: 550; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.invoice-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .invoice-layout { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
@media (max-width: 600px) { .panel { padding: 20px; } }
.panel + .panel { margin-top: 0; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.inv-head h2 { font-size: 1.6rem; margin: 0; }
.inv-head .sub { color: var(--muted); font-size: 0.95rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.offen { background: var(--amber-soft); color: var(--amber); }
.badge.ueberfaellig { background: var(--red-soft); color: var(--red-dark); }
.badge.bezahlt { background: var(--green-soft); color: var(--green); }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
@media (max-width: 560px) { .meta { grid-template-columns: 1fr 1fr; } }
.meta small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.meta strong { color: var(--ink); font-size: 0.98rem; }
.items { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.items th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 650; padding: 8px 0; }
.items td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.items .num { text-align: right; white-space: nowrap; padding-left: 14px; }
.items .qty { color: var(--muted); font-size: 0.88rem; display: block; }
.totals { margin-top: 10px; border-top: 2px solid var(--ink); padding-top: 12px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .muted { color: var(--muted); }
.totals .grand { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.totals .paid { color: var(--green); font-weight: 600; }
.pdf-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 650; }
.pdf-link svg { width: 18px; height: 18px; }

.amount-due { text-align: center; padding: 6px 0 22px; }
.amount-due small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.amount-due .big { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg-alt); border-radius: 14px; margin-bottom: 20px; }
.tabs button { font: inherit; font-weight: 650; font-size: 0.95rem; border: 0; padding: 11px 8px; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tab-panel[hidden] { display: none; }
.method-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 0; }
.method-list span { font-size: 0.8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.secure svg { width: 15px; height: 15px; }
.qr-box { text-align: center; }
.qr-box img { width: 210px; height: 210px; margin: 0 auto 10px; border-radius: 14px; border: 1px solid var(--line); padding: 8px; background: #fff; image-rendering: pixelated; }
.qr-box p { color: var(--muted); font-size: 0.9rem; }
.bank-rows { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-alt); }
.bank-row small { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.bank-row strong { color: var(--ink); font-size: 0.96rem; word-break: break-all; }
.copy { flex: none; border: 0; background: #fff; color: var(--blue); font: inherit; font-size: 0.82rem; font-weight: 650; padding: 7px 10px; border-radius: 9px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.copy:hover { background: var(--blue-soft); }
.paid-state { text-align: center; padding: 10px 0; }
.paid-state .check { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.paid-state .check svg { width: 36px; height: 36px; }
.paid-state p { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 650; cursor: pointer; }

/* Beta-Hinweis Online-Bezahlung */
.beta-badge {
  display: inline-flex; align-items: center; vertical-align: middle; padding: 3px 10px; border-radius: 999px;
  background: #ffb020; color: #3d2600; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
h2 .beta-badge { font-size: 0.8rem; margin-left: 8px; position: relative; top: -4px; }
.beta-note { align-items: flex-start; }
.beta-note .beta-badge { flex: none; margin-top: 1px; }
.beta-note a { color: inherit; text-decoration: underline; }
.pay-band .beta-line { margin-top: 10px; font-size: 0.95rem; color: #ffd27a; font-weight: 600; }

/* Admin-Seite */
.admin-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 400px at 80% 0%, rgba(95,180,230,0.22), transparent 60%), linear-gradient(180deg, #f3f9fd 0%, #fff 100%); }
.admin-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); text-align: center; }
.admin-card .brand { justify-content: center; margin-bottom: 26px; }
.admin-lock { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.admin-lock svg { width: 26px; height: 26px; }
.admin-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.admin-card p { color: var(--muted); font-size: 0.98rem; }
.admin-card .btn { margin-top: 8px; }
.admin-hint { font-size: 0.85rem !important; margin: 14px 0 18px; }
.admin-back { font-weight: 600; font-size: 0.93rem; }
.footer-admin { opacity: 0.7; }
.admin-form { text-align: left; display: grid; gap: 14px; margin-top: 20px; }
.admin-status { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: #8d0f28 !important; font-weight: 600; font-size: 0.92rem !important; }
.admin-hint a { font-weight: 650; }

/* Hinweis-Banner (aus der Website-Verwaltung) */
.announcement { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; font-size: 0.95rem; padding: 10px 0; text-align: center; border-bottom: 1px solid #cfe4f3; }
.announcement.announcement-warn { background: var(--amber-soft); color: #7a4600; border-bottom-color: #f5dcae; }

/* Website-Verwaltung (admin.html) */
.cms { min-height: 100vh; background: var(--bg-alt); padding-bottom: 96px; }
.cms-top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.cms-top-inner, .cms-main, .cms-savebar-inner { max-width: 960px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.cms-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.cms-top .brand img { width: 40px; height: 40px; }
.cms-top .brand-sub { display: block; }
.cms-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cms-top-actions .btn { padding: 10px 18px; font-size: 0.93rem; }
.cms-main { padding-top: 28px; }
.cms-intro h1 { font-size: 1.8rem; margin-bottom: 4px; }
.cms-intro p { color: var(--muted); }
.cms-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.cms-card h2 { font-size: 1.15rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.cms-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.cms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.cms-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .cms-grid { grid-template-columns: 1fr; } }
.cms-grid textarea { min-height: 84px; }
.cms-check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cms-check input { width: 20px; height: 20px; accent-color: var(--blue); }
.cms input:disabled, .cms textarea:disabled, .cms select:disabled { opacity: 0.7; cursor: not-allowed; }
.cms-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.cms-savebar-inner { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
#cms-save-status { margin-right: auto; color: var(--muted); font-size: 0.9rem; }

/* Spam-Schutz-Feld (für Menschen unsichtbar) */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Admin: Bereiche und Anfragen */
.cms-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.cms-tabs button { font: inherit; font-weight: 650; font-size: 0.95rem; border: 0; padding: 10px 16px; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.cms-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.cms-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.78rem; display: inline-grid; place-items: center; }
.inq-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.inq-toolbar .btn { padding: 9px 16px; font-size: 0.9rem; }
.inq-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.inq-filters button { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.inq-filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.inq-list { display: grid; gap: 12px; }
.inq-empty { color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; margin: 0; }
.inq-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.inq-card.is-new { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 95, 150, 0.08); }
.inq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.inq-head h3 { margin: 0 0 2px; font-size: 1.08rem; }
.inq-meta { color: var(--muted); font-size: 0.88rem; }
.inq-status { flex: none; font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st-neu { background: var(--blue-soft); color: var(--blue-dark); }
.st-gelesen { background: var(--bg-alt); color: var(--muted); }
.st-erledigt { background: var(--green-soft); color: var(--green); }
.inq-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; font-size: 0.93rem; font-weight: 600; word-break: break-all; }
.inq-message { white-space: pre-wrap; margin: 0 0 14px; color: var(--ink); background: var(--bg-alt); border-radius: 12px; padding: 12px 14px; font-size: 0.97rem; }
.inq-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-actions .btn { padding: 8px 14px; font-size: 0.88rem; }
.inq-delete { color: var(--red-dark) !important; }

/* Admin: Fotos & Wünsche */
.upload-card { display: grid; gap: 14px; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed #c5d3e0; border-radius: 16px; background: var(--bg-alt); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: var(--blue-soft); }
.dropzone svg { width: 34px; height: 34px; color: var(--blue); }
.dropzone strong { color: var(--ink); }
.dropzone span { color: var(--muted); font-size: 0.88rem; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-selected { font-size: 0.9rem; color: var(--ink); background: var(--blue-soft); border-radius: 10px; padding: 10px 12px; word-break: break-word; }
.upload-status { margin: 0; color: var(--muted); font-size: 0.9rem; min-height: 1.2em; }
.upload-card .btn { justify-self: start; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.photo-grid .inq-empty { grid-column: 1 / -1; }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.photo-card.is-done { opacity: 0.75; }
.photo-thumb { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-file { display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--blue); }
.photo-body { padding: 14px; display: grid; gap: 6px; }
.photo-name { font-weight: 650; color: var(--ink); word-break: break-word; font-size: 0.95rem; }
.photo-note { margin: 2px 0 6px; font-size: 0.9rem; background: var(--bg-alt); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; color: var(--ink); }
.photo-body .inq-actions .btn { padding: 7px 12px; font-size: 0.85rem; }
