/* =============================================================
   1. GLOBAL / BASIS SETUP
   ============================================================= */
@font-face {
    font-family: "Inter";
    font-weight: 100 900; 
    font-style: normal;
    font-display: swap;
    src: url("fonts/Inter-Variable.woff2") format("woff2");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #e8f6fb;
    color: #1a2e1a;
    min-height: 100vh;
}

.bg-animation {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 80% 20%, #f7d6ee 0%, #edf0d7 45%, transparent 80%),
        linear-gradient(135deg, #7af5f1, #d7efd7, #efe6ae, #a9bba9, #ebdfd1);
    background-size: 400% 400%;
    animation: flow 25s ease-in-out infinite;
}

@keyframes flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================================================
   2. BUTTON-SYSTEM (Getrennte Klassen gegen Chaos)
   ============================================================= */

/* TYP A: Kräftige Buttons (Newsletter, Senden, Warenkorb) */
.btn-link, button[type="submit"], .btn-buy {
    display: inline-block;
    padding: 12px 24px;
    background-color: #333 !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid #333;
    border-radius: 2px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* TYP C: Der Passepartout-Button (Bio-Button "hier") */
.btn-hier {
    display: inline-block;
    padding: 6px 16px;
    background-color: #ffffff !important; /* Weißer Hintergrund */
    color: #2c3e50 !important;           /* Dunkle Schrift */
    text-decoration: none !important;
    border: 1px solid #d1d1d1;           /* Dezenter Rahmen */
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-hier:hover {
    background-color: #f0f0f0 !important;
    border-color: #333;
    color: #000 !important;
}


/* TYP B: Dezentere Rubrik-Links (Galerie-Navigation) */
.mini-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff !important;
    color: #2c3e50 !important; /* Dunkle Schrift */
    text-decoration: none !important;
    border: 1px solid #d1d1d1;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 5px;
    transition: all 0.3s ease;
}

.mini-link:hover, .mini-link.active {
    background-color: #f0f0f0 !important;
    border-color: #2c3e50;
    color: #000 !important;
}

/* =============================================================
   3. FOOTER (Keine Unterstriche auf Desktop/Mobil)
   ============================================================= */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08); 
    margin-top: 40px;
}

.footer-nav a {
    text-decoration: none !important;
    color: #555 !important;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    text-decoration: underline !important;
    color: #000 !important;
}

@media (max-width: 600px) {
    .footer-nav { flex-direction: column; align-items: center; gap: 12px; }
}



/* Zentrierung für den Bio-Text */
.bio-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bio-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: #1a2e1a;
}
/* =============================================================
   RETTUNG FÜR DIE BIO-SEITE (Abstände & Hierarchie)
   ============================================================= */

/* Die Hauptüberschrift braucht Luft nach unten */
.bio-header h1 {
    font-weight: 850;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem !important; /* Abstand nach Heinz Platow */
    color: #1a2e1a;
}

/* Der Untertitel (Chronist...) */
.bio-subtitle {
    display: block;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem !important;
}

/* Die Zwischenüberschrift (Sein Leben...) */
.bio-content h3 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 2rem !important;    /* Abstand nach oben */
    margin-bottom: 1.5rem !important; /* Abstand nach unten zum Fließtext */
    letter-spacing: -0.02em;
    color: #1a2e1a;
}

/* Der eigentliche Text (In der Rolle eines...) */
.bio-content p {
    font-weight: 400;
    line-height: 1.8;
    font-size: 1.15rem;
    margin-bottom: 2rem !important; /* Abstand zwischen den Absätzen */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/* Einheitlicher Abstand für den Startseite-Button auf allen Unterseiten */
.page-navigation {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 5rem !important; /* Erhöht den Abstand zum nachfolgenden Text */
    padding-top: 1rem;
}

/* Speziell falls der Button in einem Header-Bereich sitzt */
header + .page-navigation, 
.glass-card > .page-navigation {
    margin-bottom: 4rem !important;
}
/* Erzwingt Abstand unter dem Startseite-Button auf JEDER Seite */
.page-navigation {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 2.5rem !important; /* Massiver Abstand nach unten zum Text */
    padding-bottom: 2rem !important;
    clear: both; /* Verhindert das Umfließen von Text */
}

/* Falls der Button direkt in der glass-card sitzt, geben wir ihm extra Luft */
.glass-card .page-navigation {
    
    margin-bottom: 2.5rem !important;
}

/* Versandkosten und Zahlungshinweise vers_zahlu.php */
/* Zentriert den gesamten Container auf der Seite */
.page-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
  font-family: sans-serif;
}

.shipping-container {
  width: 100%;
  max-width: 900px; /* Begrenzt die Breite wie im Bild */
}

table {
  width: 100%;
  border-collapse: separate; /* Wichtig für abgerundete Ecken */
  border-spacing: 0;
  border: 1px solid #ccc;
  border-radius: 2px;
  overflow: hidden; /* Schneidet Ecken des Inhalts passend ab */
}

th {
  background-color: #555555; /* Dunkelgrauer Header */
  color: white;
  text-align: left;
  padding: 12px;
  font-weight: normal;
}

td {
  padding: 12px;
  background-color: #e6e6e6; /* Hellgrauer Hintergrund der Zeilen */
  border-top: 2px solid white; /* Trennlinie zwischen den Zeilen */
  text-align: left;
  vertical-align: middle;
}

.price {
  text-align: right;
  font-weight: bold;
  width: 100px;
  border-left: 2px solid white; /* Vertikale Trennlinie zum Preis */
}

.subtext {
  font-size: 0.9em;
  display: block;
  margin-top: 4px;
}
@media (max-width: 600px) {
  /* Die Tabellenzeile wird zum Flex-Container, der untereinander stapelt */
  tr {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid white; 
  }

  td {
    width: 100% !important;
    box-sizing: border-box;
    border-left: none !important; /* Entfernt die vertikale Trennlinie */
  }

  .price {
    text-align: left; /* Preis rutscht unter den Text und ist linksbündig */
    background-color: #f0f0f0; /* Leicht andere Farbe zur Abhebung */
    padding-top: 5px;
  }
}
.kleines-bild {
    width: 80px;  /* Feste Breite */
    height: auto;   /* Höhe passt sich automatisch an, damit nichts verzerrt */
    border: 1px solid #ccc; /* Optional: Ein kleiner Rahmen */ /* Bild der Papiersorte in papier.php */
    }

    /* 1. Einheitliche Rundung für die Bilder */

/* 2. Mobile Optimierung (Safari/Chrome Fix) */
@media screen and (max-width: 768px) {
    .kleines-bild {
        /* Deaktiviert native Browser-Styles, die Radien verfälschen könnten */
        -webkit-appearance: none;
        appearance: none;
    }
} /* Diese Klammer schließt den 768px Block */

@media screen and (max-width: 600px) {
    .price {
        text-align: center; /* Zentriert den Link/Container */
        display: block;
        width: 100%;
        margin-top: 10px;
    }
    .kleines-bild {
        margin: 0 auto; /* Zentriert das Bild selbst */
        display: block; /* WICHTIG: Damit margin: 0 auto funktioniert */
    }
} /* <-- DIESE KLAMMER HAT GEFEHLT */

/* =============================================================
   4. GALLERY & GRID SETUP (3:2 Querformat)
   ============================================================= */

/* Hauptseite / Allgemeine Karten */
/* =============================================================
   4. GALLERY & GRID SETUP (Zentralisiert)
   ============================================================= */

/* Gemeinsame Bild-Regeln für Startseite und Galerie */
.card-item img, 
#galleryGrid img {
    width: 100% !important;
    aspect-ratio: 3 / 2 !important; /* 3 breit, 2 hoch */
    height: auto !important; 
    object-fit: cover !important;
    display: block;
    border: 8px solid #fff;
    filter: sepia(15%) contrast(95%);
}

/* Das Grid-System */
.grid, #galleryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

/* Die Karten-Container */
.card-item { 
    margin-bottom: 30px; 
    background: #fff; 
    border: 1px solid #d1d1d1; 
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    text-decoration: none;
    color: inherit;
}

/* Kauf-Bereich & Formulare */
.format-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #d1d1d1;
    font-family: inherit;
}

.buy-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.price-tag { 
    font-weight: 700; 
    color: #2c3e50; 
}

/* Navigation & Suche */
.nav-scroll-container { 
    text-align: center; 
    margin-bottom: 3rem; 
}

h1.gallery-title { 
    text-align: center; 
    font-weight: 850; 
    font-size: 2.5rem; 
    margin-bottom: 2rem; 
}

.search-container { 
    max-width: 1200px; 
    margin: 0 auto 2rem; 
    padding: 0 15px; 
}

.search-input { 
    padding: 12px; 
    width: 300px; 
    border: 1px solid #d1d1d1; 
}


    .buy-footer { display: flex; justify-content: space-between; align-items: center; }
    .price-tag { font-weight: 700; color: #2c3e50; }

    .nav-scroll-container { text-align: center; margin-bottom: 3rem; }
    h1.gallery-title { text-align: center; font-weight: 850; font-size: 2.5rem; margin-bottom: 2rem; }
    .search-container { max-width: 1200px; margin: 0 auto 2rem; padding: 0 15px; }
    .search-input { padding: 12px; width: 300px; border: 1px solid #d1d1d1; }
