/*
Theme Name: Anhängervermietung Isgören
Theme URI: https://example.de
Author: Samet Isgören
Description: Eigenständiges Theme für die Anhängervermietung – 750 kg Anhänger mieten in Pforzheim. Mit Buchungskalender und Online-Buchungsanfrage.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: anhaenger-vermietung
*/

/* ===== Grundlagen ===== */
:root {
  --ink: #171b21;
  --ink-soft: #3d4450;
  --muted: #6b7280;
  --line: #e5e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff3e8;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --red: #dc2626;
  --red-soft: #fdecec;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 27, 33, .08);
  --shadow-lg: 0 24px 60px rgba(23, 27, 33, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 1.06rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(249, 115, 22, .35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.logo .logo-badge {
  width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 1.15rem;
}
.logo small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .15s; }
.main-nav a:hover { color: var(--ink); }
.main-nav .btn { padding: 10px 22px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { background: linear-gradient(160deg, #14181d 0%, #232a33 70%, #2d2318 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 84px 0 72px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 18px 0 18px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: #c8cdd4; font-size: 1.12rem; max-width: 520px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.hero-badges span {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-price-tag {
  position: absolute; top: -18px; right: -10px; background: var(--accent); color: #fff;
  border-radius: 14px; padding: 12px 18px; font-weight: 800; text-align: center;
  box-shadow: 0 12px 30px rgba(249, 115, 22, .45); transform: rotate(3deg);
}
.hero-price-tag small { display: block; font-size: .72rem; font-weight: 600; opacity: .9; }
.hero-price-tag strong { font-size: 1.5rem; }

/* ===== Preise ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase;
}
.price-card h3 { font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }
.price-card .price { font-size: 2.6rem; font-weight: 800; margin: 10px 0 4px; letter-spacing: -.03em; }
.price-card .price sup { font-size: 1.2rem; font-weight: 700; }
.price-card .per { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 26px; }
.price-card li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-soft); font-size: .95rem; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px;
  background: var(--green-soft); color: var(--green); border-radius: 50%;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}
.price-card .btn { width: 100%; justify-content: center; }
.price-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 26px; }

/* ===== Details / Specs ===== */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 44px; }
.details-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.spec-list { display: grid; gap: 14px; }
.spec {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.spec .ico {
  flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; font-size: 1.3rem;
}
.spec strong { display: block; font-size: 1rem; }
.spec span { color: var(--muted); font-size: .9rem; }

/* ===== Ablauf ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 800; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 44px auto 0; display: grid; gap: 12px; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: 20px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--ink-soft); padding: 0 0 20px; font-size: .97rem; }

/* ===== Big CTA ===== */
.big-cta { background: linear-gradient(150deg, #14181d, #2b2016); color: #fff; border-radius: 24px; padding: 64px 48px; text-align: center; }
.big-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.big-cta p { color: #c8cdd4; margin-bottom: 30px; }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: center;
}
.contact-card .ico {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px;
  background: var(--accent-soft); display: grid; place-items: center; font-size: 1.5rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card a { color: var(--accent-dark); font-weight: 700; }
.contact-card p { color: var(--muted); font-size: .93rem; }

/* ===== Buchungsseite ===== */
.page-hero { background: linear-gradient(160deg, #14181d, #232a33); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-hero p { color: #c8cdd4; max-width: 620px; font-size: 1.05rem; }

.booking-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; margin-top: 48px; }
.booking-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.booking-panel h2 { font-size: 1.25rem; margin-bottom: 18px; }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head strong { font-size: 1.05rem; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.1rem; transition: .15s;
}
.cal-nav button:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
  font-size: .92rem; font-weight: 600; border: 1px solid transparent; background: var(--bg-soft);
  cursor: pointer; transition: .12s; position: relative;
}
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.past { color: #c3c8cf; background: transparent; cursor: default; }
.cal-day.free:hover { border-color: var(--accent); }
.cal-day.booked { background: var(--red-soft); color: var(--red); cursor: not-allowed; text-decoration: line-through; }
.cal-day.selected { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(249, 115, 22, .4); }
.cal-day.in-range { background: var(--accent-soft); color: var(--accent-dark); }
.cal-legend { display: flex; gap: 18px; margin-top: 16px; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-legend .l-free { background: var(--bg-soft); border: 1px solid var(--line); }
.cal-legend .l-booked { background: var(--red-soft); }
.cal-legend .l-selected { background: var(--accent); }

/* Formular */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .96rem; background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.tarif-picker { display: grid; gap: 10px; }
.tarif-option { position: relative; }
.tarif-option input { position: absolute; opacity: 0; }
.tarif-option label {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
  font-weight: 600; transition: .15s; margin: 0; font-size: .95rem;
}
.tarif-option label .t-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.tarif-option label small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.tarif-option input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.booking-summary {
  background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; font-size: .95rem;
  display: grid; gap: 6px;
}
.booking-summary .row { display: flex; justify-content: space-between; }
.booking-summary .row.total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.booking-hint { font-size: .85rem; color: var(--muted); }
.form-msg { border-radius: 12px; padding: 14px 18px; font-weight: 600; margin-bottom: 22px; }
.form-msg.ok { background: var(--green-soft); color: var(--green); }
.form-msg.err { background: var(--red-soft); color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ===== Rechtstexte ===== */
.legal-content { max-width: 780px; margin: 0 auto; padding: 64px 24px 88px; }
.legal-content h1 { font-size: 2rem; margin-bottom: 28px; }
.legal-content h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.legal-content p, .legal-content li { color: var(--ink-soft); margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--accent-dark); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: #14181d; color: #aeb4bd; padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p, .site-footer a { font-size: .93rem; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: .85rem; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; }
  .hero-media { order: -1; }
  .price-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; gap: 32px; }
  .booking-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 18px 24px 24px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; }
  .main-nav .btn { justify-content: center; margin-top: 10px; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .big-cta { padding: 48px 28px; }
}
