/* =========================================================
   Power Packaging – Design System
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.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;
}

:root {
  /* Colors */
  --color-primary:     #0a2540;   /* deep navy */
  --color-primary-mid: #071a30;   /* nav/footer bg */
  --color-accent:      #e53935;   /* red – CTA, highlights */
  --color-accent-dark: #c62828;
  --color-accent-2:    #1565c0;   /* electric blue – secondary accent */
  --color-accent-2-dark: #0d47a1;
  --color-brand:       #0d2137;   /* navy – section headings, body buttons */
  --color-brand-dark:  #07152a;
  --color-bg:          #ffffff;
  --color-bg-subtle:   #eef2f7;
  --color-bg-blue:     #f0f4ff;
  --color-text:        #1a1a2e;
  --color-text-muted:  #4a5568;
  --color-focus:       #ffb300;
  --color-border:      #dde2ea;
  --color-white:       #ffffff;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-body:    'Inter', 'Segoe UI', Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;

  --leading-tight:  1.25;
  --leading-normal: 1.6;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,37,64,.08), 0 1px 2px rgba(10,37,64,.06);
  --shadow-md:  0 4px 16px rgba(10,37,64,.10), 0 2px 6px rgba(10,37,64,.06);
  --shadow-lg:  0 10px 40px rgba(10,37,64,.14), 0 4px 12px rgba(10,37,64,.08);

  /* Transitions */
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-brand);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p { max-width: 72ch; }

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-20);
}

.section--alt {
  background: var(--color-bg-subtle);
}

.icon-sprite-preload { display: none; }
.footer-address { font-style: normal; }
.section-wave-bottom {
  position: relative;
  padding-bottom: calc(var(--space-10) + 70px);
}
.section-wave-both {
  position: relative;
  padding-top: calc(var(--space-4) + 70px);
  padding-bottom: calc(var(--space-10) + 70px);
}
.section-primary-cta {
  background: var(--color-primary);
  padding-top: calc(var(--space-4) + 70px);
}
.text-center { text-align: center; }
.muted-copy {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.cta-copy {
  color: rgba(255,255,255,.7);
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}
.mt-8 { margin-top: var(--space-8); }

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '『';
  margin-right: .25em;
  opacity: .55;
  font-style: normal;
}

.section-label::after {
  content: '』';
  margin-left: .25em;
  opacity: .55;
  font-style: normal;
}

.section-heading {
  margin-bottom: var(--space-4);
  color: var(--color-brand);
}

.section-subtext {
  font-size: var(--text-lg);
  color: var(--color-brand);
  max-width: 60ch;
  margin-bottom: var(--space-10);
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); }

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Buttons ── */
@keyframes btn-trace {
  0%   { transform: rotate(0deg);   opacity: 1; }
  80%  { transform: rotate(360deg); opacity: 1; }
  88%  { transform: rotate(360deg); opacity: 0; }
  94%  { transform: rotate(360deg); opacity: 0.9; }
  100% { transform: rotate(360deg); opacity: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Kein background hier — ::before übernimmt den Hintergrund */
  background: transparent !important;
}

/* Hintergrund-Layer — trägt die eigentliche Button-Farbe, 2px kleiner damit ::after-Ring sichtbar */
.btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  transition: background var(--transition);
}

/* Drehendes conic-gradient — hinter ::before, nur Rand sichtbar */
.btn::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--btn-trace-color, currentColor) 8%, transparent 16%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  z-index: -2;
}

.btn-outline { --btn-trace-color: var(--color-brand); }
.btn-ghost   { --btn-trace-color: var(--color-brand); }

.btn:not(.btn-outline):hover::after {
  animation: btn-trace 0.85s linear forwards;
}

.btn:active { transform: translateY(1px); }

.btn-primary::before { background: var(--color-brand); }
.btn-primary { color: var(--color-white); }
.btn-primary:hover::before { background: var(--color-brand-dark); }
.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-red::before { background: var(--color-accent); }
.btn-red { color: var(--color-white); }
.btn-red:hover::before { background: var(--color-accent-dark); }
.btn-red:hover { box-shadow: var(--shadow-md); }

.btn-outline::before { background: transparent; border: 2px solid var(--color-brand); }
.btn-outline { color: var(--color-brand); }
.btn-outline:hover::before { background: var(--color-brand); }
.btn-outline:hover { color: var(--color-white); }

.btn-ghost::before { background: var(--color-white); border: 2px solid var(--color-white); }
.btn-ghost { color: var(--color-brand); }
.btn-ghost:hover::before { background: rgba(255,255,255,.85); }
.btn-ghost:hover { box-shadow: var(--shadow-md); }

/* ── Focus visible ── */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: var(--weight-semibold);
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .section { padding-block: var(--space-12); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ── Scroll Animations ── */
[data-animate] {
  opacity: 1;
  transform: translateY(32px);
  transition: transform 0.65s cubic-bezier(.4,0,.2,1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}
[data-animate="fade-left"]  { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="scale"]      { transform: scale(0.93) translateY(16px); }

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

@media (max-width: 768px) {
  [data-animate],
  [data-animate="fade-left"],
  [data-animate="fade-right"],
  [data-animate="scale"] {
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ── Keyframes ── */
@keyframes bounce-scroll {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}
