/*
Theme Name: Rümpelmannschaft
Theme URI: https://ruempelmannschaft.de
Author: Marius Baumfalk
Author URI: https://ruempelmannschaft.de
Description: Custom Theme für Rümpelmannschaft - Entrümpelung zum Festpreis
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.3
License: Proprietary
Text Domain: ruempelmannschaft
*/

/* ===== DESIGN TOKENS (aus company-data.json) ===== */
:root {
  /* Farben */
  --color-primary: #5A8B14;
  --color-primary-light: #6fa01e;
  --color-primary-dark: #416310;
  --color-dark: #202020;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray: #666666;
  --color-gray-dark: #333333;
  --color-border: #e0e0e0;
  --color-success: #28a745;
  --color-error: #dc3545;

  /* Typografie */
  --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-weight-normal: 500;
  --font-weight-bold: 700;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-hero: 3rem;

  /* Abstände */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-section: 5rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 100px;
  --header-height-slim: 75px;
  --sticky-bar-height: 56px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Schatten */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Übergänge */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

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

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-gray-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: var(--font-size-hero); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-section) 0;
}

.section--gray {
  background: var(--color-gray-light);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  min-height: 48px;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.btn--white:hover {
  background: var(--color-gray-light);
}

.btn--lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  :root {
    --font-size-hero: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --spacing-section: 3rem;
    --header-height: 90px;
    --header-height-slim: 70px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  body {
    padding-bottom: var(--sticky-bar-height);
  }
}

/* ===== ACCENT COLOR (CTA Buttons) ===== */
:root {
  --color-accent: #FFCE02;
  --color-accent-hover: #FFDA42;
  --color-accent-subtle: #d3b574;
  --color-accent-text: #202020;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

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

/* 2026-04-22: Section-Anchors für #section-name-Links (Sticky-Header-Offset) */
.rm-section-anchor {
  display: block;
  position: relative;
  top: -100px;
  visibility: hidden;
  height: 0;
  pointer-events: none;
}
@media (max-width: 1023px) {
  .rm-section-anchor { top: -90px; }
}

/* 2026-04-23: Content-Prose-Links einheitlich grün+bold (Desktop + Mobile).
 * Inline-Styles in Section-Templates behalten höhere Spezifität — das hier ist der Default
 * für alle <a> in <p>/<li>/.direct-answer innerhalb <main>. Betrifft alle Stadtseiten einheitlich
 * (Theme-weites Design-System). Nav/Header/Footer-Links sind außerhalb <main> und unberührt.
 */
main p a,
main li a,
main .direct-answer a {
  color: #5A8B14;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
main p a:hover,
main li a:hover,
main .direct-answer a:hover {
  color: #416310;
  text-decoration: underline;
}
