/* ============================================================
   Brugger Verpackungen — Modern redesign
   Primary brand color: orange #ff9933 (from original site)
   ============================================================ */

/* ---------- Self-hosted fonts (DSGVO-konform, kein externer Aufruf) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  /* Brand orange */
  --orange:    #ff9933;
  --orange-2:  #ff7d1a;
  --orange-3:  #f26a00;
  --orange-soft: #fff3e6;

  /* Secondary blue (from original brand palette) */
  --blue:      #476b7d;
  --blue-dark: #002060;

  /* Dark / ink (hero, products, footer) */
  --ink-900:   #141a22;
  --ink-800:   #1d2530;
  --ink-700:   #28303d;

  /* Neutrals */
  --ink:       #1a1f27;
  --muted:     #5d6670;
  --line:      #e8e6e0;
  --sand:      #f6f1e9;
  --bg:        #fbfaf7;
  --white:     #ffffff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(20,26,34,.06), 0 6px 18px rgba(20,26,34,.05);
  --shadow-md: 0 20px 50px -20px rgba(20,26,34,.3);
  --container: 1180px;

  --ff-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--ff-display); line-height: 1.1; letter-spacing: -.02em; }

.eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-3);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .98rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--primary {
  background: var(--orange);
  color: #3a2400;
  box-shadow: 0 14px 30px -12px rgba(255,125,26,.65);
}
.btn--primary:hover { background: var(--orange-2); transform: translateY(-2px); color: #2a1900; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(26,31,39,.22); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(26,31,39,.05); }
.btn--full { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(251,250,247,.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-3) 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(242,106,0,.65);
  transition: transform .25s ease;
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__mark svg { width: 23px; height: 23px; }
.brand__text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.03em;
  line-height: 1;
}
.brand__sub { color: var(--orange-3); font-weight: 700; }
/* On the dark hero, the nav text starts light until scrolled */
.nav:not(.scrolled) .brand { color: #fff; }
.nav:not(.scrolled) .nav__links a:not(.nav__cta) { color: rgba(255,255,255,.9); }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  position: relative;
  transition: color .2s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .25s ease;
}
.nav__links a:not(.nav__cta):hover { color: var(--orange); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--orange);
  color: #3a2400 !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .25s, transform .25s;
}
.nav__cta:hover { background: var(--orange-2); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav:not(.scrolled) .nav__toggle span { background: #fff; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 620px at 82% 6%, rgba(255,153,51,.4), transparent 58%),
    radial-gradient(820px 560px at 6% 108%, rgba(71,107,125,.28), transparent 55%),
    linear-gradient(160deg, var(--ink-900) 0%, var(--ink-800) 52%, var(--ink-700) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 75% 35%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 75% 35%, #000, transparent 72%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 130px 24px 110px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
}
.hero__content { max-width: 640px; }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 44px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}
.hero__stats span { color: rgba(255,255,255,.7); font-size: .92rem; }

/* Hero visual */
.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero__blob {
  position: absolute;
  inset: -8% -6% -8% -6%;
  background: radial-gradient(circle at 50% 45%, var(--orange) 0%, var(--orange-3) 55%, transparent 72%);
  filter: blur(6px);
  opacity: .9;
  border-radius: 50%;
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}
.hero__card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #ffffff, #f6f1e9);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 40px 80px -28px rgba(0,0,0,.55);
}
.hero__card img { width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.18)); }
.hero__badge {
  position: absolute;
  z-index: 2;
  left: -18px; bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .88rem;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.hero__badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,153,51,.25); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  writing-mode: vertical-rl;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section__head { max-width: 720px; margin-bottom: 60px; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; margin-bottom: 18px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- About cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,153,51,.5);
}
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--orange-3);
  background: var(--orange-soft);
  border-radius: 14px;
  margin-bottom: 20px;
  transition: background .3s ease, color .3s ease;
}
.card__icon svg { width: 27px; height: 27px; }
.card:hover .card__icon { background: var(--orange); color: #fff; }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Products ---------- */
.products { background: var(--ink-900); color: #fff; }
.products .eyebrow { color: var(--orange); }
.products .section__head p { color: rgba(255,255,255,.7); }

.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.product:hover { transform: translateY(-8px); border-color: rgba(255,153,51,.6); background: rgba(255,255,255,.07); }
.product__media {
  height: 220px;
  display: grid;
  place-items: center;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f1e9 100%);
}
.product__media img { max-height: 100%; width: auto; object-fit: contain; }
.product__body { padding: 28px; }
.product__body h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.product__body p { color: rgba(255,255,255,.72); margin-bottom: 18px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,153,51,.16);
  color: var(--orange);
  border: 1px solid rgba(255,153,51,.32);
}

/* ---------- Team ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
}
.member {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.member__photo {
  flex: 0 0 auto;
  width: 116px; height: 116px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px -10px rgba(20,26,34,.4);
  border: 3px solid var(--white);
  outline: 2px solid var(--orange-soft);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__info h3 { font-size: 1.35rem; font-weight: 700; }
.member__role { color: var(--orange-3); font-weight: 600; font-size: .92rem; }
.member__info p { color: var(--muted); margin-top: 12px; font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { background: var(--sand); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.contact__intro > p { color: var(--muted); font-size: 1.08rem; margin-bottom: 36px; }

.contact__details { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.contact__details li { display: flex; flex-direction: column; gap: 4px; }
.contact__label {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-3);
}
.contact__details a {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
  width: fit-content;
}
.contact__details a:hover { color: var(--orange-3); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: 1rem;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,153,51,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field-row .field { margin-bottom: 0; }
/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#captchaQuestion { color: var(--orange-3); font-weight: 700; }
.form__privacy { margin: 4px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.55; }
.form__privacy a { color: var(--orange-3); font-weight: 600; }
.contact__form .btn--full { margin-top: 20px; }
.form__status { margin-top: 14px; font-size: .95rem; font-weight: 600; min-height: 1.4em; }
.form__status.ok { color: #2e7d32; }
.form__status.err { color: #c62828; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .field-row .field { margin-bottom: 20px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,.75); padding: 70px 0 30px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__lockup { color: #fff; margin-bottom: 16px; }
.footer__brand .brand__text { color: #fff; }
.footer__brand .brand__sub { color: var(--orange); }
.footer__brand p { font-size: .95rem; line-height: 1.7; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer__links a { font-weight: 600; font-size: .95rem; transition: color .2s; }
.footer__links a:hover { color: var(--orange); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: .86rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.legal-nav .nav__inner { display: flex; align-items: center; justify-content: space-between; }
.legal-back {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.legal-back:hover { color: var(--orange-3); }

.legal { padding: 64px 0 90px; }
.legal__wrap { max-width: 780px; margin: 0 auto; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; margin-bottom: 12px; }
.legal__lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 8px; }
.legal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal p { color: #3a443e; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 1.2em; color: #3a443e; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--orange-3); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin: 18px 0;
}
.legal__card p { margin-bottom: 6px; }
.legal__note {
  background: var(--orange-soft);
  border: 1px solid rgba(255,153,51,.35);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: .92rem;
  color: #8a4f12;
  margin-bottom: 34px;
}
.legal__updated { margin-top: 44px; font-size: .9rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .products__grid .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .products__grid .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(5) { transition-delay: .32s; }
.cards .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll, .hero__blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__content { max-width: 100%; }
  .hero__visual { max-width: 380px; justify-self: start; }
}

@media (max-width: 920px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Keep the 3 product cards balanced on tablet, then stack on phones */
@media (max-width: 760px) {
  .products__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80%, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: var(--white);
    box-shadow: -20px 0 60px rgba(20,26,34,.18);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
  /* keep links readable inside the white drawer over the dark hero */
  .nav:not(.scrolled) .nav__links a:not(.nav__cta) { color: var(--ink); }
}

@media (max-width: 560px) {
  .cards, .products__grid, .team__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .hero__stats strong { font-size: 1.6rem; }
  .contact__form { padding: 28px; }
  .member { flex-direction: column; text-align: center; align-items: center; padding: 32px 24px; }
  .member__photo { width: 128px; height: 128px; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--bg); padding: 40px 24px; }
.error-page .brand__mark { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 24px; }
.error-page .brand__mark svg { width: 30px; height: 30px; }
.error-page h1 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(3rem, 12vw, 6rem); color: var(--ink); margin: 0 0 8px; line-height: 1; }
.error-page p { color: var(--muted); font-size: 1.1rem; margin: 0 0 28px; }
