:root{
  --bg:#000;
  --card:#1a2332;
  --text:#ffffff;
  --accent:#00f5ff;
  --accent-strong:#08e5ff;
  --danger:#ff2e2e;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
  background:var(--bg);
  color:var(--text);
}

.site-header,.site-footer{background:#14202e;color:#cfe8ff}
.site-header .container,.site-footer .container{
  max-width:1200px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between
}
.site-footer .container{justify-content:center;text-align:center}
.site-header a{color:#cfe8ff;text-decoration:none;margin-left:12px;opacity:.9}
.site-header a:hover{opacity:1}
.site-footer a{color:#cfe8ff;text-decoration:none;opacity:.9}
.site-footer a:hover{opacity:1}
.brand{font-weight:700;letter-spacing:.06em}
.brand .logo-img{display:inline-block;height:50px;width:auto;margin-right:10px;vertical-align:middle;object-fit:contain}
.brand-link{display:inline-flex;align-items:center}

.wrapper{max-width:1200px;margin:35px auto;padding:0 40px}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:start;
  grid-template-areas:
    "hours"
    "map"
    "flipcard"
    "automaten"
    "paketdienste";
}

.card{
  background:var(--card);
  border-radius:15px;
  padding:30px;
  position:relative;
  box-shadow:0 0 0 2px rgba(0,245,255,.15), 0 0 20px var(--accent);
}

.card h2{margin:0 0 10px 0;font-size:18px;font-weight:600}

/* Hours */
.hours{
  display:flex;
  flex-direction:column;
  gap:20px;
  grid-area: hours;
}
.hours-title{text-align:center !important;margin-bottom:0}
.hours .hours-list{list-style:none;margin:0;padding:0;display:grid;row-gap:12px}
.hours .hours-list li{display:grid;grid-template-columns:auto 1fr auto;column-gap:16px;align-items:center;opacity:.95;color:#00ffff}
.hours .hours-list span:first-child{justify-self:start;padding-left:10px}
.hours .hours-list span:last-child{justify-self:end;padding-right:10px}
.hours-separator{margin:20px 0;height:1px;background:rgba(0,245,255,.2);border:none}

/* Make hours card equal height to map card */
.grid .hours{height:100%}
.grid .map{height:100%}
.grid .hours .map-height-sync{display:none}

/* Map */
.map{
  grid-area: map;
}
.map-embed{position:relative;width:100%;padding-top:56.25%;overflow:hidden;border-radius:10px;cursor:pointer;transition:transform 0.2s ease}
.map-embed:hover{transform:scale(1.02)}
.map-embed iframe{position:absolute;inset:0;border:0;width:100%;height:100%;filter:saturate(1.2) contrast(1.05);pointer-events:none}

/* Coupon - Basic Styles */
.coupon{padding:30px}
.coupon-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:160px}

/* Extended Coupon Section */
.coupon-wide{
  grid-column: 1 / -1;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

/* Hexagon Background Effect */
.hexagon-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 1;
}

.hexagon-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, transparent 75%, rgba(0, 255, 255, 0.3) 75%),
    linear-gradient(-30deg, transparent 75%, rgba(0, 255, 255, 0.3) 75%),
    linear-gradient(30deg, rgba(0, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(-30deg, rgba(0, 255, 255, 0.1) 25%, transparent 25%);
  background-size: 60px 35px;
  background-position: 0 0, 0 0, 30px 15px, 30px 15px;
  position: relative;
}

.hexagon-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  filter: blur(0.5px);
}

.neon-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.025) 0%, transparent 50%);
  animation: subtle-glow 8s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
  0% {
    opacity: 0.3;
    filter: blur(1px);
  }
  100% {
    opacity: 0.6;
    filter: blur(2px);
  }
}

.coupon-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flip Card Styles */
.flip-card {
  cursor: pointer;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  min-height: 200px;
  width: 100%;
  margin: 0 auto;
  grid-area: flipcard;
  position: relative;
  z-index: 1;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 200px;
  text-align: center;
  transition: transform 0.8s ease-in-out;
  -webkit-transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateX(180deg);
  -webkit-transform: rotateX(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.flip-card-front {
  background: var(--card);
  border-radius: 15px;
  box-shadow: 0 0 0 2px rgba(0,245,255,.15), 0 0 20px var(--accent);
  padding: 30px;
}

.flip-card-back {
  background: #0a0a0a;
  transform: rotateX(180deg);
  -webkit-transform: rotateX(180deg);
  border-radius: 15px;
  box-shadow: 0 0 0 2px rgba(255,0,0,.15), 0 0 20px rgba(255,0,0,.8);
  padding: 30px;
  position: relative;
}

/* Red Hexagon Background Effect for Back */
.red-hexagon-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  z-index: 1;
  display: block;
}

.red-hexagon-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(150deg, transparent 75%, rgba(255, 0, 0, 0.3) 75%),
    linear-gradient(210deg, transparent 75%, rgba(255, 0, 0, 0.3) 75%),
    linear-gradient(150deg, rgba(255, 0, 0, 0.1) 25%, transparent 25%),
    linear-gradient(210deg, rgba(255, 0, 0, 0.1) 25%, transparent 25%);
  background-size: 60px 35px;
  background-position: 0 0, 0 0, 30px 15px, 30px 15px;
  position: relative;
}

.red-hexagon-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  filter: blur(0.5px);
}

.red-neon-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 0, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
  animation: subtle-glow 8s ease-in-out infinite alternate;
}




/* Empty cards */
.empty{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:160px;
  text-align:center;
}

/* Grid area assignments for other cards */
#automaten {
  grid-area: automaten;
}

#paketdienste {
  grid-area: paketdienste;
}
/* Make whole card clickable */
.link-card{cursor:pointer;position:relative}
.link-card:after{content:"";position:absolute;inset:0;border-radius:15px}
.link-card:hover{box-shadow:0 0 0 2px rgba(0,245,255,.25), 0 0 26px var(--accent)}

/* Responsive */
@media (max-width:767px){
  .brand .logo-img{height:36px;width:auto;margin-right:8px}
  .wrapper{padding:0 20px}
  .flip-card{min-height:180px}
  .flip-card-inner{height:180px}
  .flip-card-front, .flip-card-back{padding:20px}
  .coupon-content p{font-size:16px;text-align:center}
  
  /* Mobile-specific flip fixes */
  .flip-card-front, .flip-card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-card-back {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
  }
  
  .flip-card.flipped .flip-card-inner {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
  }
}

@media (min-width:768px){
  .grid{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "hours map"
      "flipcard flipcard"
      "automaten paketdienste";
    gap:40px;
  }
  .coupon-wide{grid-column:1/-1}
  .flip-card{position:relative;z-index:2}
  .flip-card-inner{box-shadow:0 8px 32px rgba(0,0,0,0.3)}
  
  /* Tablet-specific flip fixes */
  .flip-card-front, .flip-card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  .flip-card-back {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
  }
  
  .flip-card.flipped .flip-card-inner {
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
  }
}

@media (min-width:1024px){
  .grid{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "hours map"
      "flipcard flipcard"
      "automaten paketdienste";
    gap:40px;
  }
  .flip-card-inner{height:220px}
  .flip-card-front, .flip-card-back{padding:35px}
}

@media (min-width:1100px){
  .card h2{font-size:20px}
  .coupon-inner{min-height:180px}
  .coupon-wide{min-height:220px}
}

/* ===== COOKIE BANNER STYLES ===== */

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 2px solid #4CAF50;
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

#cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #4CAF50;
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}

.cookie-btn-primary {
  background: #4CAF50;
  color: white;
}

.cookie-btn-primary:hover {
  background: #45a049;
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #666;
}

.cookie-btn-secondary:hover {
  background: #333;
  border-color: #888;
}

.cookie-btn-tertiary {
  background: transparent;
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.cookie-btn-tertiary:hover {
  background: #4CAF50;
  color: white;
}

/* Cookie Modal */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#cookie-modal.show {
  opacity: 1;
}

.cookie-modal-content {
  background: #1a1a1a;
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid #4CAF50;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

#cookie-modal.show .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

.cookie-modal-title {
  color: #4CAF50;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cookie-modal-close:hover {
  background: #333;
}

.cookie-modal-body {
  margin-bottom: 25px;
}

.cookie-category {
  margin-bottom: 20px;
  padding: 15px;
  background: #222;
  border-radius: 8px;
  border: 1px solid #333;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-category-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cookie-category-description {
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: #4CAF50;
}

.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-slider {
  background-color: #4CAF50;
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-toggle input:disabled + .cookie-slider:before {
  background-color: #ccc;
}

.cookie-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Map Placeholder */
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a2332;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-placeholder:hover {
  background: #1e2a3a;
  transform: scale(1.02);
}

.map-placeholder-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #4CAF50;
}

.map-placeholder-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #4CAF50;
}

.map-placeholder-text {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
  max-width: 300px;
}

.map-placeholder-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.map-placeholder-btn:hover {
  background: #45a049;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner-text {
    min-width: auto;
    margin-bottom: 15px;
  }
  
  .cookie-banner-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }
  
  .cookie-modal-content {
    padding: 20px;
    margin: 10px;
  }
  
  .cookie-modal-title {
    font-size: 20px;
  }
  
  .cookie-modal-footer {
    justify-content: center;
  }
  
  .map-placeholder {
    padding: 15px;
  }
  
  .map-placeholder-icon {
    font-size: 36px;
  }
  
  .map-placeholder-title {
    font-size: 16px;
  }
  
  .map-placeholder-text {
    font-size: 13px;
  }
}



