/*
Theme Name: Die ElektroKutschen
Theme URI: https://dieelektrokutschen.de
Author: Die ElektroKutschen
Description: Eigenständiges Theme für die Vermietung elektrischer Kinderkutschen. Liegt nur unter wp-content/themes und lässt WordPress-Kern sowie Standard-Themes unangetastet.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elektrokutschen
Tags: custom-menu, featured-images, translation-ready
*/

:root {
  --ink: #111111;
  --bark: #1a1410;
  --wood: #c4a06a;
  --cream: #f7f4ef;
  --paper: #ffffff;
  --red: #9b1c22;
  --red-dark: #6e1218;
  --green: #3f5d38;
  --muted: #5c4a3d;
  --line: rgba(17, 17, 17, 0.12);
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
  --radius: 18px;
  --whatsapp: #25d366;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-dark);
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 112px;
}

.logo img {
  height: 90px;
  width: auto;
  max-width: min(380px, 62vw);
  background: transparent;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--bark);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--bark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: rgba(165, 29, 36, 0.1);
  color: var(--red);
}

.site-nav .nav-cta a {
  background: var(--red);
  color: #fff;
}

.site-nav .nav-cta a:hover {
  background: var(--red-dark);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 20, 14, 0.15) 0%, rgba(28, 20, 14, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3rem;
  max-width: 38rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.usps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: -2.8rem;
  position: relative;
  z-index: 2;
}

.usp {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.usp-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.usp h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.usp p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split img,
.media img,
.gallery img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--green);
}

.band {
  background: var(--bark);
  color: var(--cream);
}

.band h2,
.band p {
  color: inherit;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.9rem;
}

.gallery .wide {
  grid-row: span 2;
}

.gallery img {
  height: 100%;
}

.page-hero {
  padding: 3.2rem 0 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.content-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 1.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.85rem;
}

.contact-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--red);
}

label {
  display: block;
  font-weight: 700;
  margin: 0.2rem 0 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.9rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.notice {
  background: #e8f3e4;
  color: var(--green);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.notice-error {
  background: #fde8e8;
  color: var(--red-dark);
}

.site-footer {
  background: #111111;
  color: #f3ece3;
  padding: 0 0 6.5rem;
}

.footer-swoosh {
  background: linear-gradient(105deg, #111111 0%, #1a1410 36%, #7a1418 70%, #a51d24 100%);
  color: #fff;
  padding: 0 0 1.35rem;
  margin-bottom: 2.2rem;
}

.footer-swoosh-wave {
  display: block;
  width: 100%;
  height: 56px;
}

.footer-swoosh-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem 2rem;
  flex-wrap: wrap;
  padding: 0.15rem 0 0.35rem;
}

.site-footer .footer-swoosh-link {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.12rem, 2.6vw, 1.7rem);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-footer .footer-swoosh-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer-swoosh-div {
  width: 2px;
  height: 1.35em;
  background: rgba(255, 255, 255, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--wood);
}

.site-footer .logo img {
  height: 72px;
  max-width: min(320px, 70vw);
  margin-bottom: 0.8rem;
  background: transparent;
}

.legal-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.whatsapp-btn {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  right: max(1.15rem, env(safe-area-inset-right, 0px));
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 56px;
  padding: 0 1.05rem 0 0.85rem;
  border-radius: 999px;
  background: #25d366;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(28, 20, 14, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
  color: #fff;
  background: #1ebe5d;
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(28, 20, 14, 0.38);
}

.whatsapp-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-btn {
    transition: none;
  }

  .whatsapp-btn:hover,
  .whatsapp-btn:focus-visible {
    transform: none;
  }
}

@media (max-width: 860px) {
  .whatsapp-btn {
    width: 56px;
    padding: 0;
    gap: 0;
  }

  .whatsapp-btn__label {
    display: none;
  }

  .header-inner {
    min-height: 88px;
  }

  .logo img {
    height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem 1.1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .usps,
  .split,
  .contact-grid,
  .footer-grid,
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery .wide {
    grid-row: auto;
  }

  .gallery img {
    height: 230px;
  }

  .usps {
    margin-top: 1.5rem;
  }

  .footer-swoosh-inner {
    flex-direction: column;
    gap: 0.65rem;
  }

  .footer-swoosh-div {
    display: none;
  }
}
