/* Bugala Management Consulting — Brand Stylesheet
   Drop this file into any project and import it before your own styles.
   Fonts: Cinzel (Display) + Inter (Body) — beide selbst gehostet aus ./fonts/.
   Inter-woff2 aus @fontsource/inter in fonts/ ablegen (SIL OFL).
   Wichtig: Der Ordner `fonts/` muss relativ zu dieser Datei liegen. Liegt er woanders,
   die url()-Pfade in den @font-face-Regeln anpassen. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cinzel';
  src: url('fonts/Cinzel-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette */
  --bg-navy: #1E3A5A;
  --bg-coral: #FF875C;
  --bg-black: #000000;
  --bg-white: #FFFFFF;
  --bg-offwhite: #E8E8E8;

  /* Navy tints */
  --navy-800: #172E47;
  --navy-600: #2E4E71;
  --navy-400: #5B7699;
  --navy-200: #9FB3CC;
  --navy-100: #D6DEE8;

  /* Coral tints */
  --coral-600: #E8794F;
  --coral-300: #FFB08F;
  --coral-100: #FFE3D8;

  /* Semantic */
  --color-primary: var(--bg-navy);
  --color-accent: var(--bg-coral);
  --color-text: var(--bg-navy);
  --color-text-muted: var(--navy-400);
  --color-text-inverse: var(--bg-white);
  --color-surface: var(--bg-white);
  --color-surface-alt: var(--bg-offwhite);
  --color-border: var(--navy-100);

  /* Typography */
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --max-width: 1200px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-surface);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  /* ACS-20: bewusste Markenentscheidung, keine Projekt-Eigenheit. "manual" ist der
     CSS-Startwert (kein Verhaltensunterschied zu "nicht gesetzt"), aber explizit
     gesetzt verhindert er, dass ein Projekt lokal hyphens:auto oder hyphens:none auf
     Cinzel-Headlines ergaenzt. auto trennte in der Praxis unschoen; none unterdrueckte
     in Chromium auch manuell gesetzte &shy;-Trennvorschlaege, sodass lange deutsche
     Komposita ohne jeden Bindestrich mitten im Wort umbrachen. manual ist der Mittelweg:
     keine automatische Trennung, aber ein gesetztes &shy; wirkt weiterhin. */
  hyphens: manual;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; }
h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: 0.05em; }

/* Eyebrow label above headlines — signature element of the brand */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

/* Accent word inside a headline */
.accent { color: var(--color-accent); }

/* Sections */
.section { padding: var(--space-7) var(--space-4); }
.section--navy { background: var(--bg-navy); color: var(--bg-offwhite); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--color-text-inverse); }
.section--alt { background: var(--color-surface-alt); }
.container { max-width: var(--max-width); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--bg-coral); color: var(--bg-navy); }  /* Navy auf Coral = 4.9:1 (AA). Weiss auf Coral waere 2.4:1 und faellt durch. */
.btn--primary:hover { background: var(--coral-600); }
.btn--secondary { background: transparent; color: var(--bg-navy); border-color: var(--bg-navy); }
.btn--secondary:hover { background: var(--bg-navy); color: var(--bg-white); }
.section--navy .btn--secondary { color: var(--bg-white); border-color: var(--bg-white); }
.section--navy .btn--secondary:hover { background: var(--bg-white); color: var(--bg-navy); }

/* Cards — lines over boxes, no shadows */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* Divider rule */
.rule { width: 220px; height: 1px; background: var(--color-border); border: 0; margin: var(--space-3) 0; }

/* Logo sizing helpers */
.logo-horizontal { width: 260px; min-width: 160px; height: auto; }
.logo-stacked { width: 160px; min-width: 90px; height: auto; }
.logo-icon { width: 48px; min-width: 24px; height: auto; }

/* Links — NIE Browser-Standardblau. Auf hellem Grund Navy, auf Navy Off-White.
   Akzent erst beim Hover; visited bleibt gleich (kein Violett). */
a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:visited { color: var(--color-primary); }
a:hover, a:focus-visible { color: var(--color-accent); }

/* ACS-20: :not(.btn) ergaenzt — diese Regel war fuer normale Fliesstext-Links in
   Navy-Sektionen gedacht, hat aber wegen hoeherer Spezifitaet (Klasse+Element,
   0-1-1) auch .btn--primary/.btn--secondary (jeweils nur eine Klasse, 0-1-0)
   ueberschrieben, sobald ein Button ein <a> in einer .section--navy war. Buttons
   haben eigene, bereits korrekte Farbregeln (Zeile 132/134/136/180/181) — diese
   Regel darf sie nicht mehr erreichen. Gemessen: Off-White auf Coral (der bisherige
   fehlerhafte Zustand) = 1.93:1, WCAG-AA-Fail. Navy auf Coral (mit dem Fix) = 4.91:1,
   AA-Pass. Kein !important noetig — :not(.btn) nimmt der Regel den falschen
   Geltungsbereich, statt eine noch spezifischere Gegenregel obendrauf zu setzen. */
.section--navy a:not(.btn),
.section--navy a:not(.btn):visited {
  color: var(--bg-offwhite);
  text-decoration-color: var(--navy-400);
}
.section--navy a:not(.btn):hover,
.section--navy a:not(.btn):focus-visible {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* Buttons behalten ihre eigene Farbe */
a.btn, a.btn:visited, a.btn:hover { text-decoration: none; }
.btn--primary, .btn--primary:visited { color: var(--bg-navy); }
.section--navy a.btn--secondary, .section--navy a.btn--secondary:visited { color: var(--bg-white); }

/* Site-Header — verbindlich fuer alle Bugala-Seiten.
   Die Navy-Flaeche laeuft randlos, der Inhalt sitzt auf Inhaltsbreite (1200px)
   und fluchtet damit mit dem Seiteninhalt darunter. Der innere Wrapper ist Pflicht.
   Markup:
   <header class="site-header">
     <div class="site-header__inner">
       <a href="/" class="site-header__logo"><img src="brand/logos/logo-horizontal-white.svg" alt="Bugala Management Consulting"></a>
       <nav class="site-header__nav"><a href="#...">LABEL</a> …</nav>
     </div>
   </header>                                                                  */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 72px; padding: 0 var(--space-4);
  background: var(--bg-navy);
  border-bottom: 1px solid var(--navy-600);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  height: 100%; width: 100%;
  max-width: var(--max-width); margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 40px; width: auto; display: block; }
.site-header__nav { display: flex; align-items: center; gap: var(--space-4); }
.site-header__nav a {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bg-offwhite); text-decoration: none;
}
.site-header__nav a:hover, .site-header__nav a:focus-visible { color: var(--color-accent); }
@media (max-width: 720px) {
  .site-header { height: 60px; }
  .site-header__logo img { height: 32px; }
  .site-header__nav { display: none; }
}
