/* =========================
   Grundlegende Schriftarten & Body-Layout
   ========================= */
body {
    margin: 0; /* Standardabstand entfernen */
    display: flex;
    flex-direction: column; /* Inhalte untereinander */
    justify-content: flex-start; /* oben ausrichten */
    align-items: center; /* horizontal zentrieren */
    min-height: 100vh; /* volle Höhe des Viewports */
    font-family: "Microsoft JhengHei Light", Arial, Verdana, Helvetica, sans-serif;
    hyphens: auto; /* automatische Silbentrennung */
    text-align: center; /* standardmäßig zentrieren */
}














.produkte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* immer 2 Spalten */
  gap: 1em;
  max-width: 800px;
  margin: 0 auto;
}

.produkte-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* zwei gleich breite Spalten */
  gap: 1em;
  max-width: 100%; /* passt sich der Bildschirmbreite an */
  margin: 0 auto;
}











/* ---------------------- */
/* Container Styling      */
/* ---------------------- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Kontakt- und Textbox */
.container2 {
    max-width: 800px;
    margin: 5px auto;
    padding: 5px 10px;
    background: #f0f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.6;
    font-size: 1rem;
}

.container p {
    margin-bottom: 1.2em;
}

/* =========================
   Page-Frame Box
   ========================= */
.page-frame {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 3px solid #333;         /* innerer Rahmen */
    border-radius: 12px;            /* runde Ecken */
    outline: 3px solid #333;        /* äußerer Rahmen */
    outline-offset: -8px;           /* Abstand einstellen */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

/* =========================
   Bildanimationen
   ========================= */
.animate-img {
    display: inline-block;
    opacity: 0;
    transition: transform 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
    animation: fadeIn 2s forwards;
}

.animate-img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes drallIn {
    from { transform: scale(0) rotate(-360deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.drall-img {
    display: inline-block;
    animation: drallIn 0.8s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drall-img:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* =========================
   Responsive Bilder & Größen
   ========================= */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin: 10px 0;
    border: 0;
}

.img-6   { width: 6.5%; }
.img-12  { width: 12%; }
.img-50  { width: 50%; }
.img-80  { width: 80%; }

/* =========================
   Footer-Bilder
   ========================= */
.footer-images {
    width: 100%;
    padding: 10px;
    text-align: right;
    box-sizing: border-box;
}

.footer-images a {
    display: inline-block;
    margin-left: 8px;
}

.footer-images img {
    max-height: 40px;
    width: auto;
    border: 0;
    vertical-align: middle;
}
/* ---------------------- */
/* Navigation / Menü      */
/* ---------------------- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: flex-start;   /* direkt am Titel */
    margin-top: 0;             
    position: relative;
}

.nav-links {
    display: flex;             /* Links in einer Zeile */
    gap: 15px;                 /* Abstand zwischen Links */
    text-align: center;
    align-items: center;       /* vertikal ausrichten */
}

.nav-links a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    color: gray;
}

/* Hamburger für kleine Geräte */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: black;
    margin: 4px 0;
    transition: 0.4s;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .navbar { justify-content: flex-end; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 40px;
        right: 0;
        background: #f9f9f9;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
}

/* ---------------------- */
/* Dropdown Menü          */
/* ---------------------- */
.dropdown {
    position: relative;
    display: inline-block;   /* hält Links in Linie */
}

.dropbtn {
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    min-width: 160px;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-align: left;
    text-decoration: none;
    color: black;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* =========================
   Header & Navigation
   ========================= */
.site-header {
    text-align: center;
    margin-bottom: 10px;
}

.header {
    font-size: 2rem;
    margin: 0;
    padding: 22px 0;
    text-align: center;
    background: url("/bilder/hintergrund_überschrift.jpg") center/cover no-repeat;
    background-color: rgba(0,0,0,0.5);
    color: rgb(0,51,102);
}


/* =========================
   Typografie & Tabellen
   ========================= */
p, table, li, dl, dt, small {
    font-size: 12px;
    font-family: "Microsoft JhengHei Light", sans-serif;
    font-weight: bold;
}

h1, {
    font-family: "Microsoft JhengHei Light", sans-serif;
    font-weight: 700;
    text-align: center;
    /*text-decoration: underline;*/
}

h2, h3, h4 {
    font-family: "Microsoft JhengHei Light", sans-serif;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
}

b, th, strong {
    font-family: Arial, Verdana, Helvetica, sans-serif;
    font-weight: bold;
}

table, th, td {
    border: 1px solid gray;
    border-collapse: collapse;
    padding: 5px;
}

/* =========================
   Links & Link-Klassen
   ========================= */
a:link, a:visited {
    color: gray;
    font-size: 13px;
    text-decoration: none;
}

a:hover { color: red; cursor: pointer; }
a:active { color: black; }

.link-left {
    float: left;
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
}

.link-right {
    float: right;
    display: inline-block;
    text-decoration: none;
}

.link-klein {
    font-size: 10px;
    color: gray;
    display: inline-block;
    text-decoration: none;
}

/* =========================
   Unterstrichene Links
   ========================= */
u {
    color: gray;
    text-underline-offset: 15%;
}