:root {
  --blue: #0b6bcb;
  --blue-dark: #084f96;
  --sky-1: #0a3d7a;
  --sky-2: #2a86d8;
  --sky-3: #9fd3ff;
  --sun: #ffb347;
  --ink: #14213d;
  --muted: #5b6577;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --ok: #18864b;
  --ok-bg: #e3f6ea;
  --err: #b42318;
  --err-bg: #fdecea;
  --warn-bg: #fff6e5;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 33, 61, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none;
  background: var(--sun); color: var(--ink); padding: .75em 1.4em; border-radius: 999px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 179, 71, .4); }
.btn-small { padding: .45em 1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-danger { background: var(--err); color: #fff; }
.link { font-weight: 600; text-decoration: none; }

/* header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.35rem; color: inherit; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--sun); }
.brand svg { width: 30px; height: 30px; fill: var(--sun); color: currentColor; }
.nav nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; opacity: .9; }
.nav nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; min-height: min(92vh, 860px); display: flex; align-items: center;
  background: linear-gradient(100deg, rgba(8, 30, 62, .78) 0%, rgba(8, 30, 62, .35) 55%, rgba(8, 30, 62, .05) 100%),
              linear-gradient(180deg, rgba(8, 30, 62, .45) 0%, rgba(8, 30, 62, 0) 25%),
              url("../img/9.jpg") center 30% / cover no-repeat, var(--sky-1); }
@media (max-width: 800px) {
  .hero { background: linear-gradient(180deg, rgba(8, 30, 62, .7), rgba(8, 30, 62, .45)),
                      url("../img/9-sm.jpg") center / cover no-repeat, var(--sky-1); }
}
.hero h1, .hero .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hero-content { position: relative; z-index: 2; padding-block: 140px 120px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; opacity: .85; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.03em; max-width: 14ch; }
.hero h1 span { color: var(--sun); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; opacity: .95; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery img, .card { transition: none; } }

/* sections */
.section { padding-block: 80px; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); margin-top: -.3em; margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; }
.card { overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 33, 61, .14); }
.card-img { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 4px; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { font-size: 1.35rem; margin-bottom: .2em; }
.card-head p { margin: 0; }
.card-desc { margin: 0; font-size: .95rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); background: #e8f1fc; padding: .2em .7em; border-radius: 999px; margin-bottom: 8px; }
.meta { display: flex; gap: 6px; align-items: baseline; }
.price { font-size: 1.4rem; font-weight: 800; }
.dates { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dates li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: .95rem; }
.dates small { display: block; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15em .65em; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-full { background: var(--err-bg); color: var(--err); }
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 32px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.team img:nth-child(1) { grid-column: span 3; aspect-ratio: 16 / 7; }
.team img:nth-child(4) { object-position: center 25%; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 12px; }
.gallery a:nth-child(1), .gallery a:nth-child(7) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(4) { grid-column: span 2; }
@media (max-width: 520px) { .gallery a:nth-child(n) { grid-column: auto; grid-row: auto; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

/* photo banner behind the header on sub pages */
.page-photo { padding: 0; height: 280px; background: linear-gradient(180deg, rgba(8, 30, 62, .65), rgba(8, 30, 62, .15)),
  url("../img/12.jpg") center 70% / cover no-repeat, var(--sky-1); }
.page-photo-sm { height: 140px; }
.facts li { background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.facts span { color: var(--muted); font-size: .9rem; }

/* forms */
.notice { background: var(--warn-bg); border-left: 4px solid var(--sun); padding: 12px 16px; border-radius: 8px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form label.check { display: flex; align-items: center; gap: 8px; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); width: 100%; padding: .65em .8em;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,107,203,.15); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.err { color: var(--err); font-weight: 500; font-size: .85rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 10px; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.form .btn { justify-self: start; }

/* footer */
.site-footer { background: var(--ink); color: #cfd6e4; padding-block: 40px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #9aa4b8; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }

/* admin */
body.admin { background: var(--bg-alt); }
.admin-header { background: var(--ink); color: #fff; }
.admin-header .brand small { font-weight: 500; font-size: .8rem; opacity: .7; margin-left: 4px; }
.admin-header .btn-ghost-dark { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.admin-main { padding-block: 32px 64px; }
.admin h1 { font-size: 1.8rem; }
.admin h2 { font-size: 1.3rem; margin-top: 32px; }
.inline { display: inline-flex; gap: 10px; align-items: center; margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.title-row h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: grid; }
.stat strong { font-size: 2rem; }
.stat span { color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfd; }
tr:last-child td { border-bottom: 0; }
tr.dim td { color: var(--muted); }
td.actions { display: flex; gap: 12px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select { width: auto; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.pre { white-space: pre-wrap; }
.danger-zone { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line); }
.login-box { max-width: 380px; margin: 10vh auto; background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.accent { color: var(--sun); }
.status-neu { background: #e8f1fc; color: var(--blue); }
.status-bestaetigt, .status-erledigt { background: var(--ok-bg); color: var(--ok); }
.status-abgelehnt, .status-storniert { background: var(--err-bg); color: var(--err); }

.thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; display: block; }
.image-pick { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.image-pick label { flex: 1 1 260px; }
.image-pick img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.login-bg { position: fixed; inset: 0; z-index: 0; background: linear-gradient(rgba(8, 30, 62, .45), rgba(8, 30, 62, .45)),
  url("../img/12.jpg") center / cover no-repeat, var(--sky-1); }
.login-box { position: relative; z-index: 1; }
