/* =========================
   EssenTank Visitenkarte
   Vintage Retro CSS Styles
   ========================= */

/* ====== FONT IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Roboto+Slab:wght@400;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #203754;
  --secondary: #35A27A;
  --accent: #F7F7F2;
  /* Vintage Retro Palette */
  --retro-yellow: #F6C85F;
  --retro-orange: #E07A5F;
  --retro-brown: #7B4B2A;
  --retro-blue: #4B6EAF;
  --retro-green: #A3B18A;
  --retro-cream: #F7F7F2;
  --retro-red: #C44536;
  --retro-shadow: rgba(32, 55, 84, 0.12);
  /* Typography */
  --font-display: 'Archivo Black', 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto Slab', 'Roboto', Arial, sans-serif;
  /* Spacing */
  --section-margin: 60px;
  --section-padding: 40px 20px;
  --card-gap: 24px;
  --card-margin-bottom: 20px;
  --container-max: 1200px;
  --border-radius: 12px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  background: var(--retro-cream);
  color: var(--primary);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-image: repeating-linear-gradient(135deg, #f6c85f10 0 20px, transparent 20px 40px), repeating-linear-gradient(45deg, #e07a5f08 0 30px, transparent 30px 60px);
}

img {
  max-width: 100%;
  border-radius: var(--border-radius);
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ========== HEADER & NAV ========== */
header {
  background: var(--retro-yellow);
  box-shadow: 0 2px 8px var(--retro-shadow);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 24px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--retro-orange);
  color: #fff;
}

.cta-btn {
  font-family: var(--font-display);
  background: var(--retro-blue);
  color: #fff;
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: 0 4px 16px var(--retro-shadow);
  text-decoration: none;
  margin-left: 16px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-red);
  color: #fff;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 24px var(--retro-shadow);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 30;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--retro-red);
  transform: scale(1.08) rotate(-5deg);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--retro-yellow);
  z-index: 100;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 110;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-blue);
  transform: scale(1.08) rotate(5deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px dashed var(--retro-brown);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--retro-cream);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  header .container nav,
  header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(120deg, var(--retro-yellow) 60%, var(--retro-orange) 100%);
  border-bottom: 8px solid var(--retro-brown);
  margin-bottom: var(--section-margin);
  padding: 0;
}
.hero .container {
  min-height: 340px;
  justify-content: center;
  align-items: center;
  padding: 60px 16px 60px 16px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 600px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--primary);
  margin: 0 0 12px 0;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 #fff7, 0 2px 8px var(--retro-shadow);
}
.hero p {
  font-size: 1.2rem;
  color: var(--retro-brown);
  margin-bottom: 16px;
}

/* ========== SECTION LAYOUTS ========== */
section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding);
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}
.card {
  margin-bottom: var(--card-margin-bottom);
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px var(--retro-shadow);
  transform: translateY(-4px) scale(1.02) rotate(-1deg);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
  border-left: 8px solid var(--retro-blue);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 24px var(--retro-shadow);
  border-left: 8px solid var(--retro-red);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== FEATURE GRID ========== */
.feature_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature_grid > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  border-left: 6px solid var(--retro-yellow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature_grid > div:hover, .feature_grid > div:focus-within {
  border-left: 6px solid var(--retro-orange);
  box-shadow: 0 8px 24px var(--retro-shadow);
  transform: translateY(-2px) scale(1.01) rotate(-1deg);
}

/* ========== LOCATION CARDS ========== */
.location-card {
  background: var(--retro-green);
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  padding: 20px 18px;
  margin-bottom: 20px;
  border-left: 6px solid var(--retro-brown);
  font-family: var(--font-body);
  min-width: 200px;
  max-width: 320px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.location-card h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--retro-brown);
}
.location-card:hover, .location-card:focus-within {
  border-left: 6px solid var(--retro-red);
  box-shadow: 0 8px 24px var(--retro-shadow);
}

/* ========== IMAGE GALLERY ========== */
.image_gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}
.image_gallery img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}
.image_gallery img:hover, .image_gallery img:focus {
  box-shadow: 0 8px 24px var(--retro-shadow);
  transform: scale(1.04) rotate(-2deg);
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 32px;
  overflow: hidden;
}
thead {
  background: var(--retro-yellow);
}
th, td {
  padding: 16px 12px;
  text-align: left;
  font-family: var(--font-body);
}
th {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.1rem;
}
tbody tr {
  border-bottom: 1px solid #eee;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody td {
  color: var(--primary);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 #fff7, 0 2px 8px var(--retro-shadow);
}
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--retro-brown);
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--retro-orange);
}
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
a {
  color: var(--retro-blue);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--retro-red);
}
strong {
  color: var(--retro-brown);
  font-weight: 700;
}

/* ========== FOOTER ========== */
footer {
  background: var(--retro-brown);
  color: #fff;
  padding: 32px 0 16px 0;
  border-top: 8px solid var(--retro-yellow);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.85;
  transition: color var(--transition), opacity var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--retro-yellow);
  opacity: 1;
}
footer img {
  height: 36px;
  margin: 8px 0;
}
footer p {
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.8;
  margin: 0;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--retro-yellow);
  color: var(--primary);
  box-shadow: 0 -2px 16px var(--retro-shadow);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieBannerIn 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  margin: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px var(--retro-shadow);
}
.cookie-btn.accept {
  background: var(--retro-blue);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--retro-green);
  color: var(--primary);
  transform: scale(1.04);
}
.cookie-btn.reject {
  background: var(--retro-red);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--retro-orange);
  color: #fff;
  transform: scale(1.04);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--retro-brown);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  transform: scale(1.04);
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,55,84,0.45);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--retro-cream);
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  animation: cookieModalIn 0.5s cubic-bezier(.4,0,.2,1);
  position: relative;
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--retro-brown);
  margin-bottom: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--retro-yellow);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  border: 2px solid var(--retro-brown);
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: var(--retro-blue);
  border-radius: 50%;
  transition: left var(--transition), background var(--transition);
}
.cookie-modal .cookie-toggle input:checked + .slider {
  left: 22px;
  background: var(--retro-green);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: var(--retro-blue);
  transform: scale(1.08);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature_grid > div, .location-card {
    min-width: 160px;
    max-width: 100%;
  }
  .image_gallery img {
    width: 140px;
    height: 90px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  header .container {
    padding: 12px 8px;
    gap: 12px;
  }
  .hero .container {
    padding: 36px 8px 36px 8px;
  }
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .feature_grid {
    gap: 16px;
  }
  .feature_grid > div {
    padding: 16px 10px;
    font-size: 0.98rem;
  }
  .image_gallery {
    gap: 10px;
  }
  .image_gallery img {
    width: 100px;
    height: 60px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 22px 8px 16px 8px;
    min-width: 220px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .hero h1 {
    font-size: 1.4rem;
  }
  .cta-btn {
    padding: 10px 14px;
    font-size: 1rem;
  }
  .feature_grid > div, .location-card {
    padding: 10px 6px;
    font-size: 0.95rem;
  }
  .cookie-modal {
    min-width: 160px;
  }
}

/* ========== MICRO-INTERACTIONS ========== */
.card, .feature_grid > div, .location-card, .testimonial-card, .image_gallery img {
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:active, .feature_grid > div:active, .location-card:active, .testimonial-card:active, .image_gallery img:active {
  transform: scale(0.98) rotate(1deg);
}

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px dashed var(--retro-blue);
  outline-offset: 2px;
}

/* ========== UTILITY CLASSES ========== */
.hide {
  display: none !important;
}

/* ========== PRINT STYLES ========== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container { box-shadow: none !important; background: #fff !important; }
}
