/* =========================================================
   ELBE SNACKS – HAUPT-STYLESHEET
   Datei: assets/styles.css

   GLIEDERUNG:
   01. Grundeinstellungen
   02. Farben und Variablen
   03. Allgemeine Layout-Hilfen
   04. Topbar
   05. Header und Navigation
   06. Buttons
   07. Hero-Bereiche
   08. Inhaltsbereiche
   09. Karten und Raster
   10. Formulare
   11. Footer
   12. Cookie-Hinweis und WhatsApp
   13. Responsive: Tablet
   14. Responsive: Handy
========================================================= */

/* =========================================================
   01. GRUNDEINSTELLUNGEN
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f2a35;
  background: #f7f5f1;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #0b2744;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: .65rem;
}

p {
  margin-top: 0;
}

ul {
  padding-left: 1.2rem;
}

/* =========================================================
   02. FARBEN UND VARIABLEN
========================================================= */
:root {
  --navy: #0b2744;
  --navy-soft: #173957;
  --sand: #d9c8aa;
  --sand-light: #eee7db;
  --white: #ffffff;
  --text: #1f2a35;
  --muted: #6d7782;
  --line: rgba(11, 39, 68, .15);
  --shadow: 0 18px 50px rgba(11, 39, 68, .12);
  --radius: 22px;
  --container: 1450px;
}

/* =========================================================
   03. ALLGEMEINE LAYOUT-HILFEN
========================================================= */
.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--white);
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.eyebrow {
  margin-bottom: 12px;
  color: #8b6e44;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #e7d5b9;
}

.lead {
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #e9eef3;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--white);
  color: var(--navy);
}

/* =========================================================
   04. TOPBAR
========================================================= */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: .88rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 42px;
}

.topbar-contact {
  display: flex;
  gap: 20px;
}

.topbar a:hover {
  color: var(--sand);
}

/* =========================================================
   05. HEADER UND NAVIGATION
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
}

.logo {
  width: 185px;
  flex: 0 0 auto;
}

.logo img {
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .96rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--sand);
  transition: right .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.8rem;
}

/* =========================================================
   06. BUTTONS
========================================================= */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--sand);
  color: var(--navy);
}

.btn.secondary {
  border-color: rgba(255,255,255,.65);
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn.dark {
  background: var(--navy);
  color: var(--white);
}

/* =========================================================
   07. HERO-BEREICHE
========================================================= */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: center;
}

.hero-image,
.page-hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,39,68,.94) 0%, rgba(11,39,68,.76) 44%, rgba(11,39,68,.25) 100%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 90px;
}

.hero-text,
.page-hero-text {
  max-width: 760px;
}

.hero h1,
.page-hero h1,
.hero h2,
.page-hero h2 {
  color: var(--white);
}

/* =========================================================
   08. INHALTSBEREICHE
========================================================= */
.usp-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.usp-item {
  display: flex;
  gap: 14px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.usp-item:last-child {
  border-right: 0;
}

.usp-item h2 {
  margin-bottom: 4px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
}

.usp-item p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.usp-icon {
  font-size: 1.5rem;
}

.process,
.contact-band,
.cta-band {
  padding: 92px 0;
  background: var(--navy);
  color: var(--white);
}

.process h2,
.process h3,
.contact-band h2,
.cta-band h2 {
  color: var(--white);
}

.process-grid,
.contact-grid,
.split {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 58px;
  align-items: start;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.step {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
}

.step-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--sand);
  font-weight: 800;
}

.reference-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.reference-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.reference-item h3 {
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.area-box,
.info-box {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--sand-light);
}

.area-image,
.content-image {
  margin-top: 22px;
  overflow: hidden;
  border-radius: 18px;
  background: #d6dde5;
}

.area-image img,
.content-image img {
  min-height: 280px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8b6e44;
  font-weight: 900;
}

.team-grid,
.stats-grid,
.blog-grid,
.faq-grid {
  display: grid;
  gap: 24px;
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 2.3rem;
  color: var(--navy);
}

.quote {
  padding: 34px;
  border-left: 5px solid var(--sand);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 1.15rem;
}

/* =========================================================
   09. KARTEN UND RASTER
========================================================= */
.cards {
  display: grid;
  gap: 24px;
}

.cards.five {
  grid-template-columns: repeat(5, 1fr);
}

.cards.three,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.blog-card,
.team-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-image,
.team-image,
.blog-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d6dde5;
}

.card-image img,
.team-image img,
.blog-image img {
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

.card:hover img,
.blog-card:hover img {
  transform: scale(1.04);
}

.card-content,
.team-content,
.blog-content {
  padding: 25px;
}

.card-content a,
.blog-content a {
  color: #8b6e44;
  font-weight: 800;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 72px;
}

.service-detail.reverse .content-image {
  order: 2;
}

.faq-grid {
  max-width: 920px;
  margin-inline: auto;
}

.faq-item {
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(11,39,68,.08);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--navy);
  font-weight: 800;
}

.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* =========================================================
   10. FORMULARE
========================================================= */
.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  font-size: .9rem;
  font-weight: 800;
  color: var(--navy);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cfd6dd;
  border-radius: 12px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
}

.check input {
  width: auto;
  margin-top: 5px;
}

/* =========================================================
   11. FOOTER
========================================================= */
.footer {
  padding-top: 70px;
  background: #071b30;
  color: #d9e0e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand img {
  width: 190px;
  margin-bottom: 18px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer h2 {
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 1rem;
}

.footer a:hover {
  color: var(--sand);
}

.footer-bottom {
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
}

/* =========================================================
   12. COOKIE-HINWEIS UND WHATSAPP
========================================================= */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1001;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1f8f5f;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

.cookie {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1100;
  max-width: 440px;
  padding: 18px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie p {
  margin-bottom: 12px;
  font-size: .9rem;
}

.cookie-button {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
}

/* =========================================================
   13. RESPONSIVE – TABLET
========================================================= */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-item:nth-child(2) {
    border-right: 0;
  }

  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards.three,
  .blog-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   14. RESPONSIVE – HANDY
========================================================= */
@media (max-width: 767px) {
  
  /* Hero-Bilder nur auf Smartphones bildfüllend darstellen */
.hero-image,
.page-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
 
.container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section,
  .process,
  .contact-band,
  .cta-band {
    padding: 68px 0;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 9px 0;
    gap: 4px;
  }

  .topbar-contact {
    flex-direction: column;
    gap: 2px;
  }

  .header-inner {
    min-height: 76px;
  }

  .logo {
    width: 150px;
  }

  .hero {
    min-height: 610px;
  }

  .page-hero {
    min-height: 360px;
  }

  .hero-overlay,
  .page-hero-overlay {
    background: rgba(11,39,68,.82);
  }

  .usp-grid,
  .cards.five,
  .cards.three,
  .blog-grid,
  .team-grid,
  .stats-grid,
  .steps,
  .form-row,
  .service-detail,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .usp-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-detail.reverse .content-image {
    order: 0;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .whatsapp {
    right: 14px;
    bottom: 14px;
  }
}

/* =========================================================
   15. OPTIMIERUNG – AUTOMATENKARTEN
   Größere, vollständig sichtbare Bilder und kompakterer Text
========================================================= */

/* Karten erhalten eine einheitliche Höhe */
.cards.five .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Bildbereich deutlich vergrößern */
.cards.five .card-image {
  width: 100%;
  height: 310px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  background: #f4f4f2;
}

/* Automatenbilder vollständig anzeigen */
.cards.five .card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Sehr dezenter Hover-Effekt ohne Abschneiden */
.cards.five .card:hover .card-image img {
  transform: scale(1.02);
}

/* Textbereich kompakter gestalten */
.cards.five .card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

/* Überschriften verkleinern und Umbruch ermöglichen */
.cards.five .card-content h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Fließtext kleiner und besser lesbar */
.cards.five .card-content p {
  margin-bottom: 18px;
  font-size: .94rem;
  line-height: 1.55;
}

/* Link immer unten ausrichten */
.cards.five .card-content a {
  margin-top: auto;
}

/* Auf kleineren Desktop-Bildschirmen drei Karten pro Reihe */
@media (max-width: 1280px) {
  .cards.five {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards.five .card-image {
    height: 320px;
  }
}

/* Tablet: zwei Karten pro Reihe */
@media (max-width: 900px) {
  .cards.five {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards.five .card-image {
    height: 300px;
  }
}

/* Handy: eine Karte pro Reihe */
@media (max-width: 767px) {
  .cards.five {
    grid-template-columns: 1fr;
  }

  .cards.five .card-image {
    height: 340px;
  }

  .cards.five .card-content h3 {
    font-size: 1.45rem;
  }

  .cards.five .card-content p {
    font-size: 1rem;
  }
}

/* =========================================================
   TEAMKARTEN – BILDER VOLLSTÄNDIG ANZEIGEN
========================================================= */

.team-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-image {
  width: 100%;
  height: 290px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  background: #f7f5f1;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

/* Kein Vergrößern beim Überfahren */
.team-card:hover .team-image img {
  transform: none;
}

.team-content {
  flex: 1;
}

/* Tablet */
@media (max-width: 1024px) {
  .team-image {
    height: 320px;
  }
}

/* Handy */
@media (max-width: 767px) {
  .team-image {
    height: auto;
    min-height: 280px;
  }

  .team-image img {
    height: auto;
    max-height: 380px;
  }
}

/* =========================================================
   REFERENZEN – BILDER VOLLSTÄNDIG ANZEIGEN
========================================================= */

.service-detail .content-image {
  width: 100%;
  min-width: 0;
  height: 420px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  border-radius: 18px;
  background: #f4f4f2;
}

.service-detail .content-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

/* Tablet */
@media (max-width: 1024px) {
  .service-detail .content-image {
    height: 380px;
  }
}

/* Handy */
@media (max-width: 767px) {
  .service-detail .content-image {
    height: auto;
    min-height: 260px;
  }

  .service-detail .content-image img {
    height: auto;
    max-height: 420px;
  }
}

/* =========================================================
   KONTAKTFORMULAR – STATUSMELDUNGEN
========================================================= */

.form-success {
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid #9bbca6;
    border-radius: 8px;
    background: #edf7f0;
}

.form-success h3 {
    margin: 0 0 8px;
}

.form-success p {
    margin: 0;
}


.form-error {
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid #d9a3a3;
    border-radius: 8px;
    background: #fff1f1;
}

.form-error h3 {
    margin: 0 0 10px;
}

.form-error ul {
    margin: 0;
    padding-left: 20px;
}


/* Unsichtbares Spam-Schutzfeld */
.website-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}