/* ==========================================================================
   1. VARIABLES & CORE RESET
   ========================================================================== */
:root {
  --primary: #d32f2f;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray: #f9f9f9;
  --header-height: 120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Roboto', sans-serif;
  --christmas-gold: #D4AF37;
  --christmas-silver: #f4f4f4;
  --christmas-text: #2c2c2c;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  margin: 0;
  color: var(--black);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; padding: 0; margin: 0; }

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

/* ==========================================================================
   2. TYPOGRAPHY & LINKS
   ========================================================================== */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  margin: 0 auto 1.5rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  padding: 3rem 1vw 1rem;
  /* SAFETY: Handle long German words */
  overflow-wrap: break-word;
  hyphens: auto;
}

.t-content a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.t-content a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition);
}

.t-content a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ==========================================================================
   3. GLOBAL COMPONENTS (.c-)
   ========================================================================== */
/* Buttons */
.c-btn, .wp-block-button__link {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 1rem 2rem !important; /* Reduced padding */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-radius: 0 !important;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: opacity 0.2s;
}

.c-btn:hover { opacity: 0.9; }
.c-btn:disabled { background: #ccc !important; cursor: not-allowed; }

/* Button Variants */
.btn-gold { background: var(--christmas-gold) !important; }
.btn-gold:hover { background: #b59020 !important; }
.btn-disabled { background: #eee !important; color: #999 !important; cursor: not-allowed; }

/* Forms */
.c-form-group { display: flex; flex-direction: column; gap: 0.5rem; } /* Reduced gap */
.c-form-group label { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; }

.c-input, .c-select, .c-textarea {
  width: 100%;
  padding: 1rem; /* Reduced padding */
  border: 2px solid #ddd;
  font: inherit;
  background: #fdfdfd;
  transition: border-color var(--transition);
}

.c-input:focus, .c-select:focus, .c-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.c-checkbox-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem; /* Reduced padding */
  background: var(--gray);
}

.c-checkbox-group input { width: 22px; height: 22px; accent-color: var(--primary); }

.c-policy-link {
  display: inline-block !important;
  margin-left: 5px;
  color: var(--primary) !important;
  text-decoration: underline !important;
  font-weight: 700;
}
.c-policy-link::after { display: none !important; }

/* Alerts */
.c-alert { padding: 1rem; margin: 1rem 0; border-left: 4px solid; font-weight: 700; }
.c-alert--success { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.c-alert--error { background: #ffebee; color: var(--primary); border-color: var(--primary); }
.c-honeypot { display: none !important; visibility: hidden; }

/* ==========================================================================
   4. GLOBAL LAYOUT & GRID
   ========================================================================== */
.home-section { padding: 3rem 8vw; max-width: 1800px; margin: 0 auto; } /* Reduced from 6rem */

.home-main-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2.5rem; /* Reduced from 5rem */
  border-bottom: 2px solid var(--black);
  padding: 2rem 0 1rem; /* Reduced from 4rem / 1.5rem */
}

.home-main-header h1 { margin: 0; padding: 0; white-space: nowrap; font-size: clamp(1.2rem, 4vw, 3.5rem); }

/* Zig-Zag Grid Utility */
.split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4vw; /* Reduced gap */
}

.split-content, .split-media { flex: 1; }

.layout-img-left, .reverse-layout { flex-direction: row-reverse; }

/* Ultrawide Variant */
.split-layout.is-ultrawide { flex-direction: column !important; align-items: flex-start; }
.is-ultrawide .split-content { width: 100%; max-width: 1000px; order: 2; margin-top: 2rem; }
.is-ultrawide .split-media { width: 100%; order: 1; }

/* Typography Utilities */
.home-h2 { font-size: 2.1rem; margin: 0 0 1.5rem; font-weight: 800; line-height: 1.1; } /* Reduced margin */
.home-lead-text { font-size: 1.35rem; line-height: 1.6; color: #333; padding-right: 3rem; }

/* WP Block Columns Overrides */
.wp-block-columns {
  display: flex !important;
  gap: 3vw;
  align-items: center !important;
  margin-bottom: 0 !important;
  padding: 4rem 1vw; /* Reduced from 8rem */
  position: relative;
}

.wp-block-columns + .wp-block-columns {
  box-shadow: 0 0 0 100vmax var(--gray);
  clip-path: inset(0 -100vmax);
  background: var(--gray);
}

/* ==========================================================================
   5. RESPONSIVE FOUNDATION
   ========================================================================== */
@media (max-width: 1100px) {
  .home-section { padding: 2rem 5vw; } /* Reduced */

  .split-layout { flex-direction: column !important; gap: 2rem; }
  .split-media { width: 100%; order: 1; }
  .split-content { width: 100%; order: 2; }

  .is-ultrawide .split-content { margin-top: 0; }

  .home-main-header h1 { white-space: normal; font-size: 2.2rem; }

  .wp-block-columns { flex-direction: column !important; gap: 3rem; padding: 4rem 3vw; }
}
