/* SNACKPROFIS – static site stylesheet */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --orange: #ff7302;
  --amber: #ffa902;
  --orange-dark: #b84a00;   /* orange for text on light backgrounds (AA contrast) */
  --brown: #5b3a29;         /* logo color */
  --espresso: #22150e;
  --ink: #2b211b;
  --muted: #6b5d54;
  --cream: #fbf5ee;
  --line: #eadfd3;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 21, 14, .06), 0 8px 24px rgba(34, 21, 14, .07);
  --gradient: linear-gradient(100deg, var(--orange), var(--amber));
  --wrap: 1120px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-dark); text-underline-offset: .18em; }
a:hover { color: var(--brown); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; color: var(--espresso); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--espresso); color: var(--white); padding: .5em 1em; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 4px; background: var(--gradient); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; color: var(--espresso);
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: .4rem .8rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: block; padding: .45rem .8rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.site-nav a:hover { background: var(--cream); color: var(--orange-dark); }
.site-nav .nav-cta {
  background: var(--gradient); color: var(--espresso); margin-left: .5rem;
}
.site-nav .nav-cta:hover { color: var(--espresso); filter: brightness(1.05); background: var(--gradient); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--gradient); color: var(--espresso); box-shadow: 0 6px 18px rgba(255, 115, 2, .3); }
.btn-primary:hover { color: var(--espresso); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 115, 2, .4); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--espresso); border-color: var(--line); }
.btn-light:hover { color: var(--orange-dark); border-color: var(--orange); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(255, 169, 2, .22), transparent 60%),
    radial-gradient(800px 380px at 0% 0%, rgba(255, 115, 2, .18), transparent 60%),
    var(--espresso);
  color: #f3e9df;
  padding-block: clamp(2.5rem, 7vw, 5rem) 0;
  overflow: hidden;
}
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 .accent {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 46rem; color: #e9dccf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.5rem; }
.hero-facts {
  list-style: none; padding: 0; margin: 0 0 2.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-weight: 600; color: #f3e9df;
}
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts li::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gradient); flex: none;
}
.hero-image {
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
  width: 100%; aspect-ratio: 1200 / 379; object-fit: cover;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--cream); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.kicker {
  display: inline-block; margin-bottom: .6rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark);
}
.lead { font-size: 1.2rem; color: var(--muted); }

.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.intro-grid .quote {
  margin: 0; padding: 1.6rem 1.8rem; border-radius: var(--radius);
  background: var(--cream); border-left: 5px solid var(--orange);
  font-size: 1.15rem;
}
.intro-grid .quote p:last-child { margin: 0; }

/* Cards */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); }

.icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255, 115, 2, .14), rgba(255, 169, 2, .2));
  color: var(--orange-dark);
}
.icon svg { width: 28px; height: 28px; }

/* Leistungsumfang */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(3rem, 6vw, 4.5rem); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.2-7.2 1.8 1.8-9 9Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.2-7.2 1.8 1.8-9 9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem;
}
.feature-images { display: flex; gap: .5rem; align-items: flex-end; }
.feature-images img { width: 92px; }
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); }

.partners { margin-top: 1.5rem; display: grid; gap: 1rem; }
.partners p { margin: 0; }

/* CTA band */

.cta-band {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--gradient);
  color: var(--espresso);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
}
.cta-band h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .2em; }
.cta-band p { margin: 0; font-weight: 600; }
.cta-band .btn { background: var(--espresso); color: var(--white); }
.cta-band .btn:hover { color: var(--white); transform: translateY(-1px); }

/* Technischer Service */

.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  background: var(--espresso); color: #e9dccf;
  border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 2.4rem);
  margin-top: 1.5rem;
}
.callout h3 { color: var(--white); }
.callout p { margin: 0; }
.callout .icon { background: rgba(255, 169, 2, .16); color: var(--amber); margin: 0; }

/* Produkte */

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.product { padding: 0; overflow: hidden; }
.product h3 { margin: 0; }
.product h3 img { width: 100%; aspect-ratio: 5 / 1; object-fit: cover; }
.chips { list-style: none; margin: 0; padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  font-size: .98rem; line-height: 1.3;
  padding: .35rem .75rem; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); color: var(--ink);
}

/* Automaten */

.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.machine {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 1.25rem 1.25rem;
}
.machine img { height: 240px; width: auto; object-fit: contain; margin-bottom: 1.1rem; filter: drop-shadow(0 10px 14px rgba(34, 21, 14, .18)); }
.machine h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.machine .datasheet {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .95rem; font-weight: 600;
}
.machine .datasheet svg { width: 1em; height: 1em; }
.machine .no-datasheet { margin-top: auto; font-size: .95rem; color: var(--muted); }

/* Kontakt */

.contact { background: var(--espresso); color: #e9dccf; }
.contact h2, .contact h3 { color: var(--white); }
.contact .kicker { color: var(--amber); }
.contact .lead { color: #d8c8b8; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.address { font-style: normal; font-size: 1.2rem; line-height: 1.6; }
.address strong { color: var(--white); display: block; font-size: 1.35rem; }
.address a { color: var(--amber); }
.address a:hover { color: var(--white); }
.contact-actions { display: grid; gap: .9rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white); text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.contact-link:hover { color: var(--white); background: rgba(255, 255, 255, .1); border-color: var(--amber); transform: translateY(-1px); }
.contact-link .icon { margin: 0; width: 48px; height: 48px; background: var(--gradient); color: var(--espresso); flex: none; }
.contact-link .icon svg { width: 24px; height: 24px; }
.contact-link small { display: block; font-size: .9rem; color: #cbb9a8; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contact-link span { font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer { background: #170e09; color: #b9a797; font-size: 1rem; padding-block: 1.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; }
.site-footer a { color: #e9dccf; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Legal pages ---------- */

.page-head { background: var(--espresso); color: #e9dccf; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { color: var(--white); margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.prose { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3rem; }
.prose address { font-style: normal; margin-bottom: 1em; }
.prose a { overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .intro-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(34, 21, 14, .1);
    padding: .5rem clamp(16px, 4vw, 32px) 1rem;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { padding: .75rem .9rem; border-radius: 10px; }
  .js .site-nav .nav-cta { margin: .4rem 0 0; text-align: center; }

  /* without JavaScript the menu simply wraps below the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .brand img { height: 44px; }
  .feature { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .machine img { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Section spacing helpers */
.section-head-spaced { margin-top: clamp(3rem, 6vw, 4.5rem); }
.section-head.closing { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
