/* ==========================================================================
   App – Edelmeyer
   Einstiegspunkt: Fonts + Tokens + Basis + DS-Komponenten.
   Prototyp:  <link rel="stylesheet" href="../resources/css/app.css">
   Laravel:   in resources/js/app.js -> import '../css/app.css'
   ========================================================================== */

@import "./fonts.css";
@import "./tokens.css";

/* --- Reset / Basis -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Canvas-Hintergrund für Overscroll/Adressleisten-Bounce auf Mobil — Hero und
     Footer sind dunkel, sonst blitzt dort kurz das helle body-Grau auf. */
  background: var(--eb-anthracite);
}

body {
  margin: 0;
  background: var(--eb-pearl);
  color: var(--eb-ink);
  font-family: var(--eb-font-sans);
  font-size: var(--eb-fs-body);
  line-height: var(--eb-lh-body);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typografie ----------------------------------------------------------- */
/* Fixe 5-stufige Hierarchie — überall konsistent. */
h1 { font-family: var(--eb-font-sans); font-weight: 600; font-size: clamp(2.8rem, 7vw, 6rem);       line-height: .98;  letter-spacing: -.025em; margin: 0; }
h2 { font-family: var(--eb-font-sans); font-weight: 600; font-size: clamp(2.6rem, 7vw, 5.5rem);     line-height: 1.06; letter-spacing: -.025em; margin: 0; }
h3 { font-family: var(--eb-font-sans); font-weight: 600; font-size: clamp(1.7rem, 3.5vw, 2.6rem);   line-height: 1.1;  letter-spacing: -.02em;  margin: 0; }
h4 { font-family: var(--eb-font-sans); font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.3rem);   line-height: 1.2;  letter-spacing: -.01em;  margin: 0; }
h5 { font-family: var(--eb-font-sans); font-weight: 500; font-size: 13px;                            line-height: 1.2;  letter-spacing: .18em; text-transform: uppercase; margin: 0; }

/* Highlight: einzelne, ausgewählte Wörter in Gadey auszeichnen.
   .eb-em ist der DS-Name, .gadey der Alias – beide identisch. */
.eb-em,
.gadey {
  font-family: var(--eb-font-display);
  font-weight: 400;             /* Gadey hat nur Regular – kein Faux-Bold */
  letter-spacing: 0.005em;
}

/* Typo-Skala aus dem Design-System */
.eb-display-xl { font-family: var(--eb-font-display); font-size: var(--eb-fs-display-xl); line-height: var(--eb-lh-display); letter-spacing: var(--eb-track-display); font-weight: 400; }
.eb-display-l  { font-family: var(--eb-font-display); font-size: var(--eb-fs-display-l);  line-height: var(--eb-lh-display); letter-spacing: var(--eb-track-display); font-weight: 400; }
.eb-display-m  { font-family: var(--eb-font-display); font-size: var(--eb-fs-display-m);  line-height: var(--eb-lh-tight);   font-weight: 400; }

.eb-headline-xl { font-family: var(--eb-font-sans); font-weight: 600; font-size: var(--eb-fs-display-xl); line-height: 1.06; letter-spacing: -0.025em; }
.eb-headline-l  { font-family: var(--eb-font-sans); font-weight: 600; font-size: var(--eb-fs-display-l);  line-height: 1.08; letter-spacing: -0.02em; }
.eb-headline-m  { font-family: var(--eb-font-sans); font-weight: 600; font-size: var(--eb-fs-display-m);  line-height: 1.14; letter-spacing: -0.015em; }

.eb-h1 { font-family: var(--eb-font-sans); font-size: var(--eb-fs-h1); line-height: var(--eb-lh-tight); font-weight: 600; letter-spacing: -0.02em; }
.eb-h2 { font-family: var(--eb-font-sans); font-size: var(--eb-fs-h2); line-height: var(--eb-lh-tight); font-weight: 600; letter-spacing: -0.015em; }
.eb-h3 { font-family: var(--eb-font-sans); font-size: var(--eb-fs-h3); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }

.eb-lead  { font-family: var(--eb-font-sans); font-size: var(--eb-fs-lead); line-height: var(--eb-lh-body); font-weight: 400; }
.eb-label {
  font-family: var(--eb-font-sans);
  font-size: var(--eb-fs-label);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: var(--eb-track-label);
  text-transform: uppercase;
}

/* --- Buttons (Design-System) --------------------------------------------- */
.btn {
  font-family: var(--eb-font-sans);
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--eb-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--eb-dur) var(--eb-ease), color var(--eb-dur) var(--eb-ease),
              border-color var(--eb-dur) var(--eb-ease), transform var(--eb-dur) var(--eb-ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary   { background: var(--eb-anthracite); color: var(--eb-on-dark); }
.btn--primary:hover { background: #161a14; }

.btn--berry     { background: var(--eb-berry); color: #fff; }
.btn--berry:hover { background: var(--eb-berry-press); }

.btn--secondary { background: transparent; color: var(--eb-ink); border-color: var(--eb-line-strong); }
.btn--secondary:hover { border-color: var(--eb-ink); background: rgba(33,38,32,0.04); }

.btn--ghost {
  background: transparent; color: var(--eb-ink);
  border-radius: 0; border-bottom: 1px solid var(--eb-ink);
  padding: 0 8px 6px;
}

.btn--sm { font-size: 14px; padding: 10px 18px; }
.btn--lg { font-size: 17px; padding: 18px 34px; }
.btn--disabled { opacity: 0.4; cursor: not-allowed; }

/* Varianten für dunkle Flächen (Hero über Bild / Anthrazit-Panel) */
.btn--on-dark.btn--secondary { color: var(--eb-on-dark); border-color: var(--eb-line-on-dark-strong); }
.btn--on-dark.btn--secondary:hover { border-color: var(--eb-on-dark); background: rgba(246,246,246,0.08); }
.btn--on-dark.btn--ghost { color: var(--eb-on-dark); border-bottom-color: var(--eb-on-dark); }

/* Pfeil in Buttons / Links */
.ar { transition: transform var(--eb-dur) var(--eb-ease); }
.btn:hover .ar,
a:hover > .ar { transform: translateX(5px); }

a { color: var(--eb-berry); }
