/*
Theme Name: Sparfuchs Park and Fly
Theme URI: https://sparfuchs-parkandfly.de
Author: Sparfuchs Park and Fly
Description: Eigenes WordPress-Theme für Sparfuchs Park and Fly – günstig parken am Flughafen Hamburg inklusive Shuttle-Service.
Version: 1.0.0
License: All Rights Reserved
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: sparfuchs
*/

:root {
  --orange: #f18a1f;
  --orange-dark: #d9761a;
  --blue: #1ea0d8;
  --blue-dark: #157a9e;
  --text: #1a2b3a;
  --muted: #5a6b7a;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: #e3e9ef;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(20, 40, 70, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar {
  background: #0a2d4b;
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 60;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: nowrap;
}
.topbar a { color: #fff; }
.topbar a:hover { color: #ffe1b3; }
.tb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tb-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--orange), #e08a15);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 38px;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
  position: relative;
  flex-wrap: nowrap;
}
.site-header .logo img { height: 64px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}
.site-header .logo { position: relative; z-index: 50; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s;
  display: block;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--blue-dark); }
.site-nav .cta > a,
.site-nav a.cta {
  background: var(--orange);
  color: #fff;
}
.site-nav .cta > a:hover,
.site-nav a.cta:hover { background: var(--orange-dark); color: #fff; }

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(10, 45, 75, 0.9) 0%, rgba(18, 85, 120, 0.6) 55%, rgba(18, 85, 120, 0) 100%),
    url("assets/img/hero.jpg") bottom/cover no-repeat;
  color: #fff;
  padding: 120px 0 150px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(241, 138, 31, 0.35) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero h1 span { color: #e08a15; }
.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 16px;
  opacity: 0.95;
  font-weight: 500;
}
.hero .hero-cta { margin-bottom: 40px; }
.hero-price {
  color: #e08a15;
  font-weight: 800;
}
.hero .buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Sections */
section { padding: 70px 0; }
section h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--text);
}
section h2 .accent { color: var(--orange); }
section .lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.bg-soft { background: var(--bg-soft); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #e08a15);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: bold;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.gallery figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Price / steps */
.price-card {
  background: #fff;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card .price {
  font-size: 3rem;
  color: var(--orange);
  font-weight: 800;
  margin: 10px 0 4px;
}
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}
.price-card ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.price-card ul li::before {
  content: "✓";
  color: var(--orange);
  font-weight: bold;
  margin-right: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Contact / forms */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.info-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.info-card h3 { margin-bottom: 14px; color: var(--blue-dark); }
.info-card p { margin-bottom: 8px; }
.info-card .label {
  display: inline-block;
  min-width: 110px;
  color: var(--muted);
  font-size: 0.9rem;
}

form.booking, form.contact,
.wpcf7 form {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.form-row { margin-bottom: 16px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 160, 216, 0.15);
}
textarea { min-height: 120px; resize: vertical; }

/* FAQ */
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  font-size: 1.4rem;
  color: var(--orange);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-body { padding: 0 22px 18px; color: var(--muted); }

/* Article / legal pages */
.article {
  background: #fff;
  padding: 20px 0 60px;
}
.article h1 {
  font-size: 2.2rem;
  margin: 30px 0 20px;
  color: var(--text);
}
.article h2 { font-size: 1.4rem; margin: 30px 0 12px; color: var(--blue-dark); }
.article p, .article li { margin-bottom: 10px; color: var(--text); }
.article ul, .article ol { margin: 10px 0 16px 22px; }

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* Footer */
.site-footer {
  background: #0e2234;
  color: #b8c5d1;
  padding: 50px 0 20px;
  margin-top: 40px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
@media (max-width: 900px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #b8c5d1; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 4px 0; }
.site-footer a[href^="mailto:"] { white-space: nowrap; }
.site-footer .logo-foot { background: #fff; padding: 12px; border-radius: 8px; display: inline-block; margin-bottom: 14px; }
.site-footer .logo-foot img { height: 50px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: #8594a3;
}

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 75px 0 90px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .buttons { flex-direction: column; align-items: stretch; }
  .hero .buttons .btn { width: 100%; justify-content: center; text-align: center; }
  section { padding: 50px 0; }
  section h2 { font-size: 1.6rem; }

  .nav-toggle { display: block; }
  .site-header .logo img { height: 48px; }
  .topbar { font-size: 0.78rem; }
  .topbar .container { gap: 8px; justify-content: space-between; }
  .site-header { top: 34px; }
  .tb-icon { width: 18px; height: 18px; }
  .tb-item { gap: 6px; min-width: 0; }
  .tb-item span:not(.tb-icon) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: none;
    z-index: 40;
    padding-top: 90px;
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }
  .site-nav ul li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 18px 24px;
    border-radius: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .cta > a,
  .site-nav a.cta { margin: 20px 24px; border-radius: 8px; text-align: center; border-bottom: none; }
}
