html {
  box-sizing: border-box;
  background-color: white; /* Füge das hinzu */
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: url('Bilder/b.png');
    background-color: white; 

    /* Neu */
    line-height: 1.6;
}
/* Speziell für Smartphones und Tablets */
@media (max-width: 768px) {
    body {
        /* WICHTIG: Das Bild soll auf dem Handy mitscrollen, nicht feststehen */
        background-attachment: scroll; 
        
        /* Damit das Bild immer den ganzen Bereich abdeckt */
        background-size: cover; 
        background-position: center top; 
        background-repeat: no-repeat;
        background-color: #ffffff; /* zur Not weiß, falls Bild nicht lädt */
        /* Stellt sicher, dass der Body mindestens so hoch wie der Bildschirm ist */
        min-height: 100vh; 
    }
}
.banner {
    /*width: 1100px;*/
    max-width: 1000px; /* Maximale Grenze */
    width: 100%;       /* Ansonsten nimm den verfügbaren Platz */
    padding: 0 15px;   /* Etwas Abstand zum Rand auf dem Handy */

    /* Oben 30px, Rechts Auto, Unten 0, Links Auto */
    margin: 30px auto 0 auto;
    display: block; /* Make it a block-level element */
}
nav {
    margin: 25px;
}
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
li {
    display: inline-block;
    position: relative;
    margin-right: 15px;
}
li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    padding: 5px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
li:hover ul {
    display: block;
}
li ul li {
    display: block;
    margin: 0;
}
li ul li a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
}
li ul li a:hover {
    background-color: #ddd;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Zentriert die Menüeinträge */
}
@media (max-width: 768px) {
    nav ul {
        text-align: left;       /* oder center, wie du magst */
    }

    nav li {
        display: block;         /* statt inline-block */
        margin: 8px 0;          /* etwas Abstand zwischen Links */
    }

    .menu-link {
        display: block;         /* Link füllt die Zeile */
        width: 100%;
    }
}

nav li {
    display: inline-block; /* Damit die Einträge nebeneinander stehen */
    margin-right: 15px;
}
.menu-item {
    color: #5A4B8B;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s;
}
.menu-item:hover {
    color: #FFCC00;
}
.menu-link {
    background-color: white;
    padding: 8px 12px;
    border-radius: 4px; /*optional, für abgerundete Ecken*/
    transition: background-color 0.3s, color 0.3s; /* sanfte Übergänge */
    display: inline-block; /* damit padding und background gut funktionieren */
    text-decoration: none;
}
.menu-link:hover {
    background-color: #3399FF; /* Blau-Farbcode, kannst du anpassen */
    color: white; /* optional, Textfarbe für besseren Kontrast */
}
.content-box {
    background-color: white;
    padding: 20px;
    margin: 20px auto;        
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: calc(100% - 40px); 
    max-width: 1300px;    /* vorher 900 */    
    box-sizing: border-box;   
    margin-bottom: 200px;
    padding-top: 30px;
    padding-bottom: 50px;
}
/* Anpassung für Handys (Bildschirme kleiner als 768px) */
@media (max-width: 768px) {
    .content-box {
        margin-bottom: 50px; /* 50px reicht auf dem Handy völlig */
        padding: 15px;       /* Etwas weniger Innenabstand spart Platz */
        
        /* Optional: Breite auf Handy voll ausnutzen? */
        /* width: calc(100% - 20px); */ 
    }
}
.Bilder{
    display: block;            /* Macht das Bild zu einem Block-Element */
    margin-left: auto;         /* Automatischer linker Rand */
    margin-right: auto;        /* Automatischer rechter Rand */
    max-width: 100%;           /* Bild nicht größer als Container */
    height: auto;              /* Erhält das Seitenverhältnis */
}
.inhaltstrennung {
    display: flex;
    gap: 20px; /* Abstand zwischen den Spalten */
}

@media (max-width: 768px) {
    .inhaltstrennung {
        flex-direction: column;
    }

    .artikel,
    .zusatz {
        margin: 0;       /* seitliche Margins ggf. reduzieren */
        padding: 0;
    }
}

/* Die Artikelspalte */
.artikel {
    flex: 3; /* wächst mehr */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Die Zusatzinhalte, z.B. Text, Bilder */
.zusatz {
    flex: 1; /* kleinerer Anteil */
    display: flex;
    flex-direction: column;
    gap: 10px;
    
}
.artikel {
    margin: 20px;
    padding: 10px;
}

.artikel h1 {
    font-size: 2em;
    margin-bottom: 10px;
}
.artikel-inhalt {
    margin-bottom: 100px; /* Abstand zwischen den Artikeln */
}
.paginierung {
    text-align: center;
    margin-top: 20px;
}
.paginierung a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #3399FF; /* Goldene Farbe für die Seitenzahlen */
    border-radius: 10%; /* Macht die Links kreisförmig */
}
.paginierung a.aktiv {
    background-color: #3399FF; /* Blaue Hintergrundfarbe für die aktuelle Seite */
    color: white; /* Weiße Textfarbe für die aktuelle Seite */
    border: none; /* Entfernt den Rahmen für die aktuelle Seite */
}
.footer {
    background-color: #f0f0f0; /* Grauer Hintergrund */
    padding: 20px;
    text-align: center;
    font-size: 0.8em; /* Kleinere Schriftgröße */
    color: #666; /* Dunkelgraue Schriftfarbe */
}
.footer p {
    margin-bottom: 10px; /* Abstand zwischen den Absätzen */
}
.impressum h1 {
    font-size: 2em;
    margin-bottom: 20px;
}
.impressum .adresse {
    font-style: normal;
    line-height: 1.5;
}
.impressum .kontakt {
    margin-bottom: 10px;
}
label {
    display: block;
    margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea {
    height: 150px;
}
button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}
/* Warenkorb */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.cart-table th, .cart-table td {
  padding: 10px;
  text-align: center;
}
.cart-image {
  width: 50px;
  height: auto;
  border-radius: 4px;
}
.cart-table a {
  color: #0073aa;
  text-decoration: none;
}
.cart-table input[type="number"] {
  width: 60px;
  padding: 5px;
  text-align: center;
}
.cart-table th { /* Tabellen Kopf */
  background-color: #f4f4f4;
  font-weight: bold;
}
.cart-table a:hover {
  text-decoration: underline;
}
/* Produkte 
header {
  background: #333;
  color: white;
  padding: 10px;
  text-align: center;
}*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}
.product-card {
  background: white;
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.product-card img {
  max-width: 100%;
  height: auto;
}
.price {
  font-size: 1.2em;
  color: #444;
}
button[type="submit"]:hover {
  background-color: #005f8d;
}
.remove-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
}

.remove-button:hover {
  background-color: #c0392b;
}
/* Login */
.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}
.login-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    padding-top: 5px;
    margin-top: 20px;
}
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.form-row label {
    flex: 0 0 120px;
    margin-right: 10px;
    font-weight: bold;
    text-align: right;
    vertical-align: baseline;
}
.form-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.button2 {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0 auto; /* oben 20px, horizontal auto = zentriert */
}
.button2:hover {
    background-color: #45a049;
}

/* Bilder in dem Spiritual text */
.image-container {
    text-align: center;
    margin: 30px 0;
}

.image-container img {
    max-width: 50%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 5px;
    text-align: center;
}


/* Design für den Hinweis-Kasten */
.disclaimer-box {
    background-color: #eef2f5;
    border-left: 5px solid #bdc3c7;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}


/* Design für die Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f3f3f3;
}


/* Überschriften Design */
h1 {
    color: #2980b9;
    /*color: #2c3e50;*/
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 40px;
}

h2 {
    color: #2980b9;
    margin-top: 30px;
}


h3 {
    color: #16a085;
    margin-top: 25px;
}

/* Paragraphen Design */
p {
    margin-bottom: 15px;
    text-align: justify;
}

.impressum p {
    margin-bottom: 15px;
    text-align: center;
}



/* Listen-Design */
.artikel-inhalt ul {
    list-style-type: none; /* Keine Standard-Punkte */
    padding-left: 0;
}

.artikel-inhalt ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.artikel-inhalt ul li::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}


