/*
Theme Name: Racoon Steuerungstechnik
Theme URI: https://racoon-steuerungstechnik.de/
Author: Ehlert IT
Author URI: https://ehlert.it/
Description: Eindrucksvolles, DSGVO-konformes WordPress-Theme fuer Racoon Steuerungstechnik. Schwarzer, bewegter Parallax-Hintergrund, Scroll-Reveal-Effekte, Akzentfarbe #00644B, voll Elementor-kompatibel. Alle Assets (Fonts, Grafiken, Skripte) werden lokal gehostet - keine CDNs, keine externen Requests.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: racoon
Tags: business, elementor, full-width-template, custom-menu, featured-images, threaded-comments
*/

/* =========================================================================
   1. Lokale Schriften (DSGVO – selbst gehostet, Variable Fonts)
   ========================================================================= */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/sora.woff2") format("woff2");
}

/* =========================================================================
   2. Design-Tokens
   ========================================================================= */
:root {
  /* Markenfarbe + Abstufungen (Akzent = Key-Farbe #00644B, Basis schwarz) */
  --rac-green:      #00644B;   /* Key-Farbe */
  --rac-green-900:  #02241b;
  --rac-green-800:  #033c2d;
  --rac-green-700:  #004c39;
  --rac-green-600:  #00644B;
  --rac-green-500:  #0a7d60;
  --rac-green-400:  #04543f;   /* dunkler Verlaufston */
  --rac-green-300:  #0a8a66;   /* leicht hellerer Brand-Ton fuer Verlauf/Hover */
  --rac-accent:     #00644B;   /* Akzent = Key-Farbe */
  --rac-accent-soft:#0a8a66;   /* etwas heller fuer Hover/Links (lesbar auf Schwarz) */

  /* Schwarze, neutrale Basis */
  --rac-ink-1000:   #000000;
  --rac-ink-900:    #060707;
  --rac-ink-850:    #0c0d0d;
  --rac-ink-800:    #121313;
  --rac-line:       rgba(255, 255, 255, .09);
  --rac-line-strong:rgba(0, 100, 75, .60);

  /* Text */
  --rac-text:       #eef2f1;
  --rac-text-muted: #a7b3af;
  --rac-text-dim:   #717b78;
  --rac-text-dark:  #ffffff;

  /* Flaechen (Glas) auf Schwarz */
  --rac-glass:      rgba(255, 255, 255, .035);
  --rac-glass-2:    rgba(255, 255, 255, .055);
  --rac-card:       rgba(255, 255, 255, .04);
  --rac-card-hover: rgba(0, 100, 75, .14);

  /* Radii / Schatten */
  --rac-r-sm: 10px;
  --rac-r:    16px;
  --rac-r-lg: 24px;
  --rac-r-xl: 32px;
  --rac-shadow:      0 18px 50px -20px rgba(0,0,0,.7);
  --rac-shadow-glow: 0 0 0 1px var(--rac-line), 0 22px 60px -28px rgba(0, 100, 75, .9);

  /* Layout */
  --rac-maxw: 1200px;
  --rac-gut:  clamp(20px, 5vw, 64px);

  /* Schrift */
  --rac-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rac-font-head: "Sora", "Inter", system-ui, sans-serif;

  /* Typo-Skala (fluid) */
  --fs-hero:  clamp(2.6rem, 6.2vw, 5.2rem);
  --fs-h1:    clamp(2.1rem, 4.6vw, 3.4rem);
  --fs-h2:    clamp(1.7rem, 3.2vw, 2.5rem);
  --fs-h3:    clamp(1.25rem, 2vw, 1.55rem);
  --fs-lead:  clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-base:  1rem;
  --fs-sm:    .9rem;

  --rac-ease:   cubic-bezier(.22, 1, .36, 1);
  --rac-ease-2: cubic-bezier(.65, .05, .36, 1);
}

/* =========================================================================
   3. Reset & Basis
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--rac-font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--rac-text);
  background: var(--rac-ink-1000);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--rac-font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: #fff;
}
p { margin: 0 0 1.1em; }
a { color: var(--rac-accent); text-decoration: none; transition: color .2s var(--rac-ease); }
a:hover { color: var(--rac-accent-soft); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { color: #fff; font-weight: 600; }
::selection { background: var(--rac-accent); color: var(--rac-text-dark); }

:focus-visible {
  outline: 2px solid var(--rac-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   4. Layout-Helfer
   ========================================================================= */
.rac-container {
  width: 100%;
  max-width: var(--rac-maxw);
  margin-inline: auto;
  padding-inline: var(--rac-gut);
}
.rac-section { position: relative; padding-block: clamp(64px, 10vw, 140px); }
.rac-section--tight { padding-block: clamp(40px, 6vw, 80px); }

.rac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--rac-font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rac-accent);
  margin-bottom: 1rem;
}
.rac-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--rac-accent), transparent);
}

.rac-lead { font-size: var(--fs-lead); color: var(--rac-text-muted); max-width: 60ch; }

.rac-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.rac-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rac-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rac-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .rac-grid--3, .rac-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rac-grid--2, .rac-grid--3, .rac-grid--4 { grid-template-columns: 1fr; }
}

.rac-center { text-align: center; }
.rac-center .rac-lead, .rac-center .rac-eyebrow { margin-inline: auto; }
.rac-mt-s { margin-top: 1rem; }
.rac-mt   { margin-top: 2rem; }
.rac-mt-l { margin-top: 3rem; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--rac-green); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
