﻿/* Feingetuntes Ribbon */
.ribbon {
  position: fixed;
  left: 40px;    /* weniger negativ = rückt nach rechts */
  top: 200px;      /* größerer Wert = rückt nach unten */
  z-index: 9999;
  overflow: visible;
  width: 270px;
  height: 260px;
  pointer-events: none;
}

/* Feingetuntes Ribbon mit zentriertem Text */
.ribbon span {
  position: absolute;
  display: flex;               /* Flexbox aktivieren */
  justify-content: center;     /* horizontal zentrieren */
  align-items: center;         /* vertikal zentrieren */
  width: 400px;
  height: 60px;                /* feste Höhe für das Band */
  background-color: #e63946;
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 1.1em;
  /* Diagonal-Transformation: -45° */
  transform: rotate(-45deg);
  transform-origin: 0 0;       /* Ursprung oben links */
  top: 40px;                   /* evtl. feinjustieren */
  left: -80px;                 /* evtl. feinjustieren */
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  white-space: pre-line;
  padding: 0;                  /* Padding nun über Höhe gesteuert */
  overflow: visible;
}

/* === Basis === */
html {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: url('https://www.die-hundestubb.de/background1.png') no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0));
  z-index: 0;
}

/* === Navbar === */
.header {
  background-color: #96018A;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 12px 12px; /* abgerundete Ecken unten */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  text-shadow: 1px 1px 2px black;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  transition: background-color 0.2s ease;
}

.nav-links a:hover {
  background-color: black;
  border-radius: 4px;
}

/* === Branding (global für Mobile & Tablet) === */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-main {
    font-family: "Caveat", cursive;
    font-size: 1.6em;
    color: white;
    text-transform: uppercase;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
	text-shadow: 1px 1px 2px black;
}

.brand-sub {
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	font-size: 0.8em;
	color: #f0f0f0;
	margin-top: 0.2rem;
	line-height: 1.2;
	text-shadow: 1px 1px 2px black;
}

/* === Branding mit Logo-Bild === */
.brand {
  /* Optional: zentrieren, falls gewünscht */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Entferne alle Zeilenhöhen-/Text-Regeln, die du nicht mehr brauchst */
}

.brand-logo {
  max-width: 250px;    /* passe die Breite an dein Layout an */
  height: auto;        /* erhält das Seitenverhältnis */
  display: block;      /* entfernt Inline-Abstände */
}

/* === Main Content === */
.main-content {
  margin-top: 80px;
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  color: black;
}

/* === Hero === */
.hero {
  color: white;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
}

/* === Footer === */
footer {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1em 0;
  color: white;
  text-align: center;
  margin-top: auto;
  border-radius: 12px 12px 0 0; /* abgerundete Ecken oben */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

footer * {
  color: white !important;
  text-decoration: none;
  margin: 0;
}

/* === Galerie Layout (eigenes Grid-System) === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 8px;
  display: block;
}

/* Buttons gleich groß machen, auch wenn der Text unterschiedlich ist */
.category-btn {
  background-color: #96018A;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  min-width: 150px; /* gleiche Mindestbreite für alle Buttons */
  height: 50px; /* gleiche Höhe */
  border: none;  /* Sicherstellen, dass kein Border im Standardzustand existiert */
}

/* Entferne den blauen Fokusrahmen und den Border */
.category-btn:focus,
.category-btn:focus-visible,
.category-btn:hover,
.category-btn:active {
  outline: none !important;   /* Entfernt den Standard-Fokusrahmen */
  box-shadow: none !important; /* Entfernt alle Box-Schattierungen (blauer Rand) */
  background-color: #96018A !important; /* Behalte die Hintergrundfarbe */
  color: white !important;    /* Behalte die Schriftfarbe */
  border: none !important;    /* Entfernt den blauen Border */
}

/* Optional: Hover-Effekt */
.category-btn:hover {
  background-color: #ff6600; /* Beispiel für eine Hover-Farbe */
  color: white;
}

/* === Lightbox === */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  margin: auto;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
}

.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 1);
}

/* === Tabellen-Style === */
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: middle;
  word-wrap: break-word;
}

.table th:first-child,
.table td:first-child {
  width: 70%;
}

.table th:last-child,
.table td:last-child {
  width: 30%;
}

/* === Tabellen-Wrapper für schmalere Darstellung === */
.services-table-wrapper {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === Buttons === */
button,
.custom-btn {
  background-color: #96018A;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  text-shadow: 1px 1px 2px black;
}

button:hover,
.custom-btn:hover {
  background-color: #96018A;
  color: white;
}

/* === Login-Box === */
.login-box {
  max-width: 400px;
  margin: 100px auto;
}

.login-card {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === Responsive Anpassung === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2em;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.mobile-nav-toggle {
  background-color: #96018A;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  text-align: left;
  font-size: 1.2em;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background-color: #96018A;
  padding: 10px 0;
}

.mobile-nav a {
  display: block;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked ~ .mobile-nav {
  display: block;
}

@media (min-width: 768px) {
  .mobile-nav-toggle,
  .mobile-nav {
    display: none;
  }
}

/* === Desktop-Navigation === */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #96018A;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    border-radius: 0 0 12px 12px; /* NEU */
  }

  .desktop-nav .brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .desktop-nav .brand-main {
    font-family: "Caveat", cursive;
    font-size: 1.6em;
    color: white;
    text-transform: uppercase;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
	text-shadow: 1px 1px 2px black;
  }

  .desktop-nav .brand-sub {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.8em;
    color: #f0f0f0;
    margin-top: 0.1em;
    line-height: 1.2;
	text-shadow: 1px 1px 2px black;
  }

  .desktop-nav .nav-links {
    display: flex;
    gap: 20px;
	text-shadow: 1px 1px 2px black;
  }

  .desktop-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
  }

  .desktop-nav .nav-links a:hover {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
  }
}

.desktop-nav {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.mobile-nav {
  z-index: 1100;
  position: relative;
}

.mobile-nav-toggle {
  z-index: 1200;
  position: relative;
}

body::before {
  z-index: 0;
  pointer-events: none;
}

/* Dashboard-Container zentriert und Paddings */
.dashboard-container {
  max-width: 1200px;
  margin: 80px auto 40px;
  padding: 0 16px;
  color: #333;
}

/* Tabelle */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Kopfzeile */
.dashboard-table thead th {
  background-color: #96018A;
  color: white;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid #74016e;
}

/* Zeilen und Zellen */
.dashboard-table tbody td {
  padding: 0.6rem;
  border: 1px solid #ddd;
  vertical-align: top;
}

/* Alternierende Hintergrundfarben */
.dashboard-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover-Effekt */
.dashboard-table tbody tr:hover {
  background-color: #f1e6f8;
}

/* Status-Button */
.status-btn {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

.status-btn:hover {
  background-color: #218838;
}

/* Kleines Cookie-Banner rechts unten */
#cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  font-size: 0.9rem;
  line-height: 1.4;
}

#cookie-banner .cookie-banner__text {
  margin-bottom: 0.5rem;
}

#cookie-banner a {
  color: #4eaaff;
  text-decoration: underline;
}

#cookie-banner .cookie-banner__button {
  background-color: #4eaaff;
  color: #fff;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-end;
  white-space: nowrap;
}

/* Optional: Animation einblenden */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#cookie-banner {
  animation: fadeInUp 0.4s ease-out;
}

/* Adventskalender: Klassen beginnen mit "advent-" */
.advent-background{
  background: linear-gradient(180deg,#f3efe8 0%,#efe8df 100%);
  padding: 40px 20px;
  border-radius: 12px;
}
.advent-grid { margin-top: 18px; }
.advent-card{
  background: linear-gradient(145deg,#fff8f0,#f6e8da);
  border: 2px solid #e0bfa0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .18s;
  cursor: default;
  min-height: 160px;
}
.advent-card:hover{ transform: translateY(-6px); box-shadow: 0 10px 26px rgba(0,0,0,0.12); }
.advent-card h5{ font-family: 'Raleway', sans-serif; font-weight:700; color:#4a3528; margin:0 0 8px; }
.advent-card p{ color:#4a3c2a; margin:0 0 12px; }
.advent-locked{
  background: linear-gradient(145deg,#dcdcdc,#eeeeee);
  border: 2px solid #cfcfcf;
  color:#888;
  opacity:0.8;
}
.advent-btn{
  background:#5c4b3a;
  color:#fff;
  border-radius:8px;
  padding:10px;
  border:none;
  font-weight:700;
}
.advent-btn:hover{ background:#453726; }
@media(max-width:480px){
  .advent-card{ min-height:140px; }
}
