/* === Grundlayout (leicht entschlackt) === */
body {
  font-family: 'Nunito', system-ui, Arial, sans-serif;
  background: #fff;
  margin: 0;
  color: #333;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: 'Fredoka One', cursive;
  color: #1C1C28;
  margin: .4em 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* === Navigation (neutral, kollidiert nicht mit layout.css) === */
.nav {
  background: #fff;
  border-bottom: 3px solid #ffd54f;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.08);
}

.nav a {
  margin: 0 10px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: #FF6B35; }

/* === Grid & Karten === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  overflow: hidden;
  transition: transform .2s;
}
.card:hover { transform: translateY(-3px); }

/* Bildrahmen (nicht beschneiden) */
.card .img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow: hidden;
}
.card .img-frame.small { aspect-ratio: 1 / 1; }
.card .img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center;
  display: block;
}

/* Fallback falls altes Markup (direktes img in card) noch existiert */
.card > img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.card .pad { padding: 15px; }

.price {
  font-weight: 800;
  color: #FF6B35;
  margin: 10px 0;
}

/* === Buttons === */
.btn {
  display: inline-block;
  background: #FF6B35;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
  font-weight: 600;
}
.btn:hover { background: #E85A22; }

.btn.secondary {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}
.btn.secondary:hover {
  background: #fafafa;
  color: #FF6B35;
  border-color: #FF6B35;
}

/* === Footer: mach dich klein, arbeite mit layout.css zusammen === */
/* Kein Center-Kleber mehr; layout.css steuert Grid, Größen und Links */
.footer {
  background: #101113;
  color: #e9eef3;
  margin-top: 40px;
  padding: 16px;          /* kleiner */
  text-align: left;       /* linksbündig, danke */
}
.footer a { color: #cfd6de; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Wenn alter Footer-Block noch aktiv ist, schränken wir Logos hart ein */
.footer .logo-word { height: 24px !important; width: auto !important; }
.footer .mark { height: 20px !important; width: auto !important; opacity: .85; }

/* === So funktioniert’s Block === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
  margin-top: 20px;
}
.step {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  text-align: center;
}
.step h3 { margin-bottom: 10px; }
.step .img-frame { aspect-ratio: 1/1; margin-bottom: 10px; }

/* === Formulare === */
form label { display: block; margin: 10px 0; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
button { cursor: pointer; }

/* === Admin Tabellen === */
table { border-collapse: collapse; width: 100%; }
td, th { border: 1px solid #ccc; padding: 6px; }
th { background: #f9f9f9; text-align: left; }

/* === Mobile Anpassungen === */
@media (max-width: 600px) {
  .nav { flex-direction: column; align-items: flex-start; }
  .nav a { display: inline-block; margin: 5px 5px; }
  .container { padding: 10px; }
  .card .img-frame { aspect-ratio: 1 / 1; }
}

/* ===== Kalender-Fix: isoliert und stabil ===== */
.kal {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 16px 0 10px !important;
}
.kal .small {
  text-align: center !important;
  font-weight: 800 !important;
  color: #555 !important;
  padding: 6px 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.kal .day {
  position: relative !important;
  min-height: 84px !important;
  padding: 6px !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: .92rem !important;
  box-sizing: border-box !important;
}
.kal .day .date {
  position: absolute !important;
  top: 6px !important;
  right: 8px !important;
  font-size: .78rem !important;
  color: #888 !important;
  font-weight: 700 !important;
}
.kal .day.free   { background: #edffed !important; border-color: #c8e9c8 !important; color: #064d06 !important; }
.kal .day.booked { background: #ffe7e7 !important; border-color: #ffc6c6 !important; color: #7a1111 !important; }

@media (max-width: 520px){
  .kal { gap: 4px !important; }
  .kal .day { min-height: 64px !important; padding: 5px !important; font-size: .85rem !important; }
}

/* Sicherheit */
.kal .day img,
.kal .small img { height: auto !important; width: auto !important; object-fit: contain !important; }
.kal .day .img-frame,
.kal .small .img-frame { all: unset !important; }

/* ===== Footer-Rescue (falls alter Footer noch irgendwo lädt) ===== */
.site-footer, .footer {
  background: #101113;
  color: #e9eef3;
  margin-top: 3rem;
  text-align: left;
}
.site-footer a, .footer a { color: #cfd6de; text-decoration: none; }
.site-footer a:hover, .footer a:hover { text-decoration: underline; }

/* Wenn das alte Grid benutzt wird */
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 1.25rem;
  padding: 1.2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand .logo-word { height: 22px !important; width: auto !important; margin-bottom: .35rem; }
.footer-icons .mark { height: 20px !important; width: auto !important; opacity: .85; }
.footer-bottom {
  border-top: 1px solid #2a2d31;
  padding: .6rem 1rem;
  text-align: center;
  color: #b8c2cc;
  font-size: .875rem;
}

/* Responsive Footer-Grid */
@media (max-width: 900px){
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Share/Utilities ===== */
.row { display:flex; align-items:center; gap:.75rem; }
.mb-2 { margin-bottom:.75rem; }
.mt-2 { margin-top:.75rem; }
.mt-3 { margin-top:1.25rem; }
.gap-16 { gap:1rem; }
.grid-center { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); align-items:stretch; }

.notice {
  background: #ffffff;
  border: 2px solid #ffd54f;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* Share-Bar */
.share-bar { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.share-btn {
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.45rem .6rem; border:1px solid #e8e8e8; border-radius:10px;
  background:#fff; text-decoration:none; color:#333;
  transition: background .15s ease, border-color .15s ease;
}
.share-btn:hover { background:#fafafa; }
.share-btn svg { width: 18px; height: 18px; display:block; }
.share-whatsapp { border-color:#d4f1dd; }
.share-facebook { border-color:#e2ebff; }
.share-x { border-color:#eee; }
.share-mail { border-color:#f0e5ff; }

/* Social-Links (Header) */
.social-links { display:flex; align-items:center; gap:.7rem; }
.social-links a { color:#FF6B35; text-decoration:none; font-weight:700; }
.social-links a:hover { text-decoration:underline; }

@media (max-width: 600px){
  .share-btn span { display:none; }
}
