/* ============================================================
   GLOBAL STYLES — raum-planer-online.de SEO Landing Pages
   Design Reference: kentokawazoe.com (minimal, editorial)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f3f1ed;
  --color-text: #1a1a2e;
  --color-text-muted: #6b6b7b;
  --color-accent: #2d5a27;
  --color-accent-light: rgba(45, 90, 39, 0.08);
  --color-accent-mid: rgba(45, 90, 39, 0.15);
  --color-border: rgba(26, 26, 46, 0.07);
  --color-border-accent: rgba(45, 90, 39, 0.25);
  --color-white: #fff;
  --color-dark: #1a1a2e;
  --color-dark-bg: #1c1c2a;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --fs-kicker: 0.75rem;
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.5rem, 3.5vw, 2.25rem);
  --fs-h1: clamp(2rem, 5vw, 3.25rem);

  --lh-body: 1.75;
  --lh-heading: 1.15;

  --ls-heading: -0.01em;
  --ls-kicker: 0.1em;

  --space-section: clamp(80px, 10vw, 120px);
  --space-block: clamp(40px, 5vw, 64px);

  --max-w-text: 800px;
  --max-w-wide: 1000px;
  --max-w-full: 1100px;

  --radius-card: 10px;
  --radius-btn: 6px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--color-text);
  font-weight: 600;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.section-inner {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-inner--wide {
  max-width: var(--max-w-wide);
}

.section-inner--full {
  max-width: var(--max-w-full);
}

section {
  padding: var(--space-section) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: #245020;
  border-color: #245020;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent-light);
}

.btn--light {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
}

.btn--light:hover {
  background-color: #f0f0ee;
}

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

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w-full);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo svg {
  width: 28px;
  height: 28px;
}

/* Mobile nav toggle */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 110;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle-label span { top: 50%; transform: translateY(-50%); }
.nav-toggle-label span::before { content: ''; top: -7px; }
.nav-toggle-label span::after { content: ''; top: 7px; }

.nav-toggle-checkbox:checked ~ .nav-toggle-label span {
  background-color: transparent;
}
.nav-toggle-checkbox:checked ~ .nav-toggle-label span::before {
  top: 0; transform: rotate(45deg);
}
.nav-toggle-checkbox:checked ~ .nav-toggle-label span::after {
  top: 0; transform: rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-cta {
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-btn);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background-color: #245020 !important;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-dark-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-block) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-w-full);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-brand svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.footer-tagline {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-w-full);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Cards (base) --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

/* --- Table (base) --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.table-wrapper table {
  min-width: 700px;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.table-wrapper th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg);
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

/* --- SVG Icons (base) --- */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; }

.icon-check { color: var(--color-accent); }
.icon-cross { color: #b54a4a; }
.icon-dash { color: var(--color-text-muted); }

/* --- FAQ (base) --- */
details {
  border-bottom: 1px solid var(--color-border);
}

details:last-of-type {
  border-bottom: none;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }

summary .chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--color-text-muted);
}

details[open] summary .chevron {
  transform: rotate(180deg);
}

details .faq-answer {
  padding: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  line-height: 1.4;
}

.badge--green {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.badge--muted {
  background: rgba(26, 26, 46, 0.05);
  color: var(--color-text-muted);
}

.badge--amber {
  background: rgba(180, 130, 40, 0.1);
  color: #8a6b1e;
}

/* --- Star rating --- */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating svg {
  width: 18px;
  height: 18px;
}

.star-rating .star-filled {
  color: #d4a017;
}

.star-rating .star-empty {
  color: #d8d8d8;
}

.star-rating-value {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-left: 0.5rem;
  color: var(--color-text);
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    z-index: 105;
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    display: block !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
