/* Kühlanhänger-Verleih – eigenart */
:root {
  --green: #76b82a;
  --green-dark: #5e9620;
  --green-soft: #eef6e4;
  --black: #111;
  --ink: #1d1d1f;
  --muted: #6b6f76;
  --line: #e3e5e8;
  --bg: #f5f6f7;
  --card: #fff;
  --red: #d64545;
  --red-soft: #fdecec;
  --amber: #e0a100;
  --amber-soft: #fff6dd;
  --blue: #2f6fd6;
  --blue-soft: #e8f0fd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); }
a:hover { color: var(--black); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* Header */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; }
.brand:hover { color: #fff; }
.brand .logo { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.brand .logo span { color: var(--green); }
.brand .sub { font-size: .8rem; color: #aaa; font-weight: 400; border-left: 1px solid #333; padding-left: 12px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a, .nav button.link { color: #ddd; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; background: none; border: 0; cursor: pointer; font: inherit; }
.nav a:hover, .nav a.active, .nav button.link:hover { color: #fff; background: #222; }
.nav a.active { color: var(--green); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 6px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--black); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .brand .sub { display: none; }
}

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 32px 16px 64px; }
.container.narrow { max-width: 560px; }
.container.medium { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: minmax(0, 1fr); } .sticky { position: static; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } h1 { font-size: 1.55rem; } .card { padding: 18px; } .container { padding-top: 20px; } }
.stack > * + * { margin-top: 20px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.sticky { position: sticky; top: 84px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid rgba(0,0,0,.03); }
.card.tight { padding: 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

.trailer-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.trailer-card:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.1); color: inherit; }
.trailer-card .img { aspect-ratio: 16/10; background: #e9ecef center/cover no-repeat; }
.trailer-card .body { padding: 18px 20px 20px; }
.trailer-card .loc { color: var(--muted); font-size: .9rem; }

.hero { background: var(--black); color: #fff; padding: 48px 16px 56px; }
.hero .inner { max-width: 1180px; margin: 0 auto; }
.hero h1 { font-size: 2.3rem; margin-bottom: .3em; }
.hero p { color: #bbb; max-width: 640px; font-size: 1.1rem; margin: 0; }
.hero .accent { color: var(--green); }

/* Stats */
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.8rem; font-weight: 700; margin-top: 2px; }
.stat a { text-decoration: none; color: inherit; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s; background: var(--green); color: #fff; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #f0f1f3; color: var(--ink); }
.btn-dark { background: var(--black); }
.btn-dark:hover { background: #333; }
.btn-danger { background: #fff; color: var(--red); border-color: #f2c4c4; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--green-dark); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd3d8; border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(118,184,42,.2); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; margin-bottom: 10px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.zip { grid-template-columns: 120px 1fr; }
@media (max-width: 640px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }
.inline-form { display: inline; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
legend { font-weight: 650; padding: 0 6px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--green-soft); border-color: #cfe5b4; color: #3b6510; }
.alert-error { background: var(--red-soft); border-color: #f2c4c4; color: #8f2424; }
.alert-info { background: var(--blue-soft); border-color: #c8daf8; color: #1f4c97; }
.alert-warning { background: var(--amber-soft); border-color: #f1dc9c; color: #7a5800; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; background: #eef0f2; color: #444; white-space: nowrap; }
.badge-confirmed, .badge-open { background: var(--blue-soft); color: var(--blue); }
.badge-picked_up, .badge-in_progress { background: var(--amber-soft); color: #8a6200; }
.badge-returned, .badge-done { background: var(--green-soft); color: #4a7d14; }
.badge-cancelled { background: var(--red-soft); color: var(--red); }
.badge-high { background: var(--red-soft); color: var(--red); }
.badge-free { background: var(--green-soft); color: #4a7d14; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fafbfa; }
.table .num { text-align: right; white-space: nowrap; }
dl.details { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
dl.details dt { color: var(--muted); font-size: .9rem; }
dl.details dd { margin: 0; font-weight: 500; }
@media (max-width: 640px) { dl.details { grid-template-columns: 1fr; gap: 2px; } dl.details dd { margin-bottom: 8px; } }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 550; }
.tabs a.active { color: var(--ink); border-color: var(--green); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 160px; }

/* Calendar */
.cal-wrap { user-select: none; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-nav button { background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; font-size: 1.1rem; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 700px) { .cal-months { grid-template-columns: minmax(0, 1fr); } }
.cal-month h4 { text-align: center; margin: 0 0 10px; font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: .75rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 600; font-size: .95rem; border: 0; font-family: inherit; position: relative; }
.cal-day.free { background: var(--green-soft); color: #3b6510; cursor: pointer; }
.cal-day.free:hover { background: #d9edc2; }
.cal-day.booked { background: #f6d6d6; color: #a03030; }
.cal-day.blocked { background: repeating-linear-gradient(45deg, #f2d2d2, #f2d2d2 4px, #fbe9e9 4px, #fbe9e9 8px); color: #a03030; }
.cal-day.closed { background: #eceef0; color: #888; cursor: pointer; }
.cal-day.past, .cal-day.beyond { background: transparent; color: #c4c7cb; }
.cal-day.empty { background: transparent; }
.cal-day.today::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal-day.in-range { background: #bfe09a; color: #2c4d0b; border-radius: 0; }
.cal-day.sel-start, .cal-day.sel-end { background: var(--green) !important; color: #fff !important; }
.cal-day.sel-start { border-radius: 8px 0 0 8px; }
.cal-day.sel-end { border-radius: 0 8px 8px 0; }
.cal-day.sel-start.sel-end { border-radius: 8px; }
.cal-day.own { box-shadow: inset 0 0 0 2px var(--green); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); margin-top: 14px; }
.cal-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-legend .l-free::before { background: var(--green-soft); border: 1px solid #cfe5b4; }
.cal-legend .l-booked::before { background: #f6d6d6; }
.cal-legend .l-closed::before { background: #eceef0; }
.cal-legend .l-blocked::before { background: repeating-linear-gradient(45deg, #f2d2d2, #f2d2d2 2px, #fbe9e9 2px, #fbe9e9 4px); }
.cal-hint { margin-top: 12px; font-size: .9rem; min-height: 1.4em; }
.cal-hint.err { color: var(--red); }

/* Booking summary */
.summary-box { background: #fafbfa; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-line + .summary-line { border-top: 1px dashed var(--line); }
.summary-line .k { color: var(--muted); }
.summary-line .v { font-weight: 600; text-align: right; }
.price-big { font-size: 1.5rem; font-weight: 750; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery .main { aspect-ratio: 16/10; background: #e9ecef center/cover; cursor: zoom-in; }
.gallery .thumbs { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.gallery .thumbs div { background: #e9ecef center/cover; cursor: pointer; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .gallery .thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); } .gallery .thumbs div { aspect-ratio: 4/3; } }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 8px; }

.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100px; text-decoration: none; color: var(--ink); font-size: .85rem; gap: 8px; }
.sponsor img { max-height: 54px; max-width: 100%; object-fit: contain; }
.sponsor:hover { border-color: var(--green); color: var(--ink); }

.hours { width: 100%; font-size: .9rem; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; }

details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: '+'; color: var(--green); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq .answer { padding-top: 10px; color: #333; }

/* Timeline / Messages */
.messages { display: flex; flex-direction: column; gap: 14px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.msg.mine { background: var(--green-soft); border-color: #d6eac0; }
.msg.system { background: #f6f7f8; font-size: .88rem; color: var(--muted); }
.msg .meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.attach-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.attach-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* Handover */
.sig-pad { border: 2px dashed #c6cacf; border-radius: 12px; background: #fff; width: 100%; height: 200px; touch-action: none; display: block; }
.checklist .check { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-preview img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; }
.step-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; margin-right: 8px; }

.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.kpi-row { display: flex; gap: 24px; flex-wrap: wrap; }

footer.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 16px; color: var(--muted); font-size: .88rem; }
footer.site-footer .inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site-footer a { color: var(--muted); margin-left: 16px; }

.map { width: 100%; height: 220px; border: 0; border-radius: 12px; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.text-right { text-align: right; } .nowrap { white-space: nowrap; } .hidden { display: none !important; }
.danger-zone { border: 1px solid #f2c4c4; }

@media print {
  .site-header, .site-footer, .btn, form { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
.form-row > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
@media (max-width: 960px) {
  .booking-layout > .stack:first-child { display: contents; }
  .booking-layout > .stack:first-child > * { order: 3; margin-top: 0; }
  .booking-layout > .stack:first-child > .cal-section { order: 1; }
  .booking-layout > aside { order: 2; }
}

.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; margin-top: 1.2em; }
.legal p, .legal li { color: #333; }
