/* Inter */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/files/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/files/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/files/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/files/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans/files/open-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans/files/open-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Material Symbols Outlined */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('../fonts/material-symbols/material-symbols-outlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ============================================================
   CSS Custom Properties
   ============================================================ */

:root {
  /* Colors */
  --color-brand: #E2001A;
  --color-brand-hover: #BF0017;
  --color-brand-76: rgba(226, 0, 26, 0.76);
  --color-brand-60: rgba(226, 0, 26, 0.60);
  --color-brand-10: rgba(226, 0, 26, 0.10);
  --color-brand-06: rgba(226, 0, 26, 0.06);
  --color-text-dark: #1E1E1E;
  --color-text-muted: #6B6B6B;
  --color-border-card: #E5E5E5;
  --color-border-input: rgba(30, 30, 30, 0.35);
  --color-bg-alt: #F5F5F5;
  --color-white: #FFFFFF;
  --color-footer-bg: #141414;
  --color-footer-bar: #0D0D0D;
  --color-warning: #ED7800;
  --color-success: #2EB061;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-icons: 'Material Symbols Outlined';

  --font-size-hero: 48px;
  --font-size-h2: 40px;
  --font-size-h3: 36px;
  --font-size-h4: 32px;
  --font-size-h5: 20px;
  --font-size-h6: 17px;
  --font-size-nav: 15px;
  --font-size-button: 15px;
  --font-size-body-lg: 16px;
  --font-size-body: 14px;
  --font-size-body-sm: 13px;
  --font-size-eyebrow: 10px;

  /* Layout */
  --layout-max-width: 1920px;
  --layout-padding-x: 150px;
  --layout-content-width: 1620px;
  --layout-header-height: 110px;
  --layout-card-gap: 60px;

  /* Borders & Shadows */
  --radius-button: 8px;
  --radius-card: 16px;
  --radius-pill: 100px;
  --radius-image: 20px;
  --shadow-cta-hover: 0px 8px 24px 0px rgba(226, 0, 26, 0.38);
  --shadow-mockup: 0px 20px 48px 0px rgba(0, 0, 0, 0.14);
}

/* ============================================================
   Reset
   ============================================================ */

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

/* ============================================================
   Base
   ============================================================ */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--layout-header-height);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary,
.btn-secondary,
.btn-secondary--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--font-size-button);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-button);
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary:hover {
  background-color: var(--color-brand-hover);
  box-shadow: var(--shadow-cta-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-brand);
}

.btn-secondary:hover {
  background-color: var(--color-brand-10);
}

.btn-secondary--dark {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary--dark:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Eyebrow Pill
   ============================================================ */

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--font-size-eyebrow);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-brand);
  background-color: var(--color-brand-06);
  border: 1px solid var(--color-brand-10);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

/* ============================================================
   Skip Link (Accessibility)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-brand);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--font-size-body);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   WordPress Button Block Styles
   ============================================================ */

/* Basis-Reset für alle WP Buttons */
.wp-block-button__link,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-button);
  line-height: normal;
  padding: 16px 32px;
  border-radius: var(--radius-button);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* GA Primary */
.wp-block-button.is-style-ga-primary .wp-block-button__link,
.wp-block-button.is-style-ga-primary .wp-element-button {
  background-color: var(--color-brand);
  color: #ffffff;
  border: none;
  box-shadow: none;
}
.wp-block-button.is-style-ga-primary .wp-block-button__link:hover,
.wp-block-button.is-style-ga-primary .wp-element-button:hover {
  background-color: var(--color-brand-hover);
  box-shadow: var(--shadow-cta-hover);
  color: #ffffff;
}
.wp-block-button.is-style-ga-primary .wp-block-button__link:focus-visible,
.wp-block-button.is-style-ga-primary .wp-element-button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  box-shadow: var(--shadow-cta-hover);
}

/* GA Secondary */
.wp-block-button.is-style-ga-secondary .wp-block-button__link,
.wp-block-button.is-style-ga-secondary .wp-element-button {
  background-color: transparent;
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-border-input);
  box-shadow: none;
}
.wp-block-button.is-style-ga-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-ga-secondary .wp-element-button:hover {
  background-color: var(--color-brand-06);
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.wp-block-button.is-style-ga-secondary .wp-block-button__link:focus-visible,
.wp-block-button.is-style-ga-secondary .wp-element-button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* GA Secondary Dark (für Footer / dunkle Hintergründe) */
.wp-block-button.is-style-ga-secondary-dark .wp-block-button__link,
.wp-block-button.is-style-ga-secondary-dark .wp-element-button {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.wp-block-button.is-style-ga-secondary-dark .wp-block-button__link:hover,
.wp-block-button.is-style-ga-secondary-dark .wp-element-button:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

/* ============================================================
   GA Heading & Paragraph Block Styles
   ============================================================ */

/* GA Abschnitts-Überschrift */
.wp-block-heading.is-style-ga-section-heading {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  color: #000000;
  line-height: 1.45;
}

/* GA Headline (Hero) – große Headline wie im ursprünglichen Hero-H1 */
.wp-block-heading.is-style-ga-heading-hero {
  font-family: var(--font-heading);
  /* Feste 48px liessen "Gebaeudeautomation" (465px breit) auf schmalen
     Viewports aus der Hero-Section laufen; deren overflow:hidden hat den
     Rest abgeschnitten (207px bei 320px Viewport). 1.25 entspricht exakt
     60/48, die Desktop-Optik bleibt damit unveraendert. */
  font-size: clamp(26px, 8vw, var(--font-size-hero));
  font-weight: 500;
  color: #000000;
  line-height: 1.25;
}

/* Silbentrennung nur unterhalb von lg: ab lg steht die Headline in einer
   flex-1-Spalte, dort wuerde break-word die min-content-Breite auf ein
   Zeichen druecken und die Textspalte zusammenquetschen. */
@media (max-width: 1023px) {
  .wp-block-heading.is-style-ga-heading-hero {
    hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* GA Headline (Subhero) – wie im ursprünglichen Subhero-H2 */
.wp-block-heading.is-style-ga-heading-h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 500;
  color: #000000;
  line-height: 52px;
}

/* GA Eyebrow Pill */
.wp-block-paragraph.is-style-ga-eyebrow {
  width: fit-content;
  background: rgba(226, 0, 26, 0.76);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--font-size-eyebrow);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

/* Since the pill shrinks to its content, text-align has nothing to align;
   use margins to move the pill itself within its container. */
.wp-block-paragraph.is-style-ga-eyebrow.has-text-align-left {
  margin-left: 0;
  margin-right: auto;
}
.wp-block-paragraph.is-style-ga-eyebrow.has-text-align-center {
  margin-left: auto;
  margin-right: auto;
}
.wp-block-paragraph.is-style-ga-eyebrow.has-text-align-right {
  margin-left: auto;
  margin-right: 0;
}

/* GA Eyebrow (Hell) – wie im Hero-Block verwendet */
.wp-block-paragraph.is-style-ga-eyebrow-light {
  width: fit-content;
  background: var(--color-brand-10);
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: var(--font-size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

.wp-block-paragraph.is-style-ga-eyebrow-light.has-text-align-left {
  margin-left: 0;
  margin-right: auto;
}
.wp-block-paragraph.is-style-ga-eyebrow-light.has-text-align-center {
  margin-left: auto;
  margin-right: auto;
}
.wp-block-paragraph.is-style-ga-eyebrow-light.has-text-align-right {
  margin-left: auto;
  margin-right: 0;
}

/* GA Untertext */
.wp-block-paragraph.is-style-ga-subtext {
  font-family: var(--font-body);
  font-size: var(--font-size-body-lg);
  line-height: 28px;
  color: var(--color-text-muted);
}


/* ============================================================
   Hero-Block – Layoutkorrekturen
   (Klassen .ga-hero-row / .ga-hero-media kommen aus
   plugins/ga-blocks/blocks/hero/render.php. Bewusst kein Tailwind:
   lg:items-start fehlt im gebauten build/style.css und auf dem Server
   ist kein npm/node fuer einen Rebuild vorhanden.)
   ============================================================ */

@media (min-width: 1024px) {
  /* Die Hero-Zeile war items-center. Weil die Texthoehe je nach Umbruch
     schwankt, wanderte der Versatz zwischen roter Eyebrow-Zeile und Bild
     mit der Fensterbreite (-39px bei 1600, +5px bei 1440, +19px bei 1280).
     Beide Spalten oben ausrichten; das Padding ersetzt die bisherige
     vertikale Zentrierung. */
  .ga-hero-row {
    align-items: flex-start;
    /* Ohne das wuerde lg:min-h-[762px] die Zeilenhoehe definit machen und
       die gestreckte Bildspalte unten auf 762px aufziehen. */
    min-height: 0;
    padding-top: 3.5rem;
    /* 3.5rem + 60px Container-Padding des Logo-Blocks = 116px Abstand zur
       Unterueberschrift (vorher 172px). */
    padding-bottom: 3.5rem;
  }

  /* Sonst bliebe der oben gesparte Platz als Leerraum unten stehen und die
     Hero-Hoehe waere unveraendert 762px. */
  .ga-hero-section {
    min-height: 0;
  }

  /* Bildhoehe = Hoehe der Textspalte, endet also exakt am Button-Unterrand.
     Die Spalte streckt sich auf die Zeilenhoehe; das Bild haengt absolut
     darin, damit es die Zeilenhoehe nicht selbst mitbestimmt. */
  .ga-hero-media {
    align-self: stretch;
    height: auto;
  }

  /* Masse explizit: bei absolut positionierten ersetzten Elementen (img)
     ignoriert CSS die left/right-Vorgaben, sobald width/height auto sind,
     und faellt auf die intrinsische Bildgroesse zurueck. */
  .ga-hero-media > img,
  .ga-hero-media > .ga-hero-rotator,
  .ga-hero-media > div {
    position: absolute;
    top: 0;
    left: 30px;      /* (560 - 500) / 2 -- Bildbreite bleibt 500px */
    width: 500px;
    height: 100%;
  }
}
