/* Grunddesign */

body {
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
    background-color: rgba(245,241,230,1); /*Body Hintergrundfarbe*/
    color: #333;
    line-height: 1.6;
}

header {
    background-color: rgba(245,241,230,1);
    color: rgba(0,50,73,1);
    text-align: center;
    padding: 1rem 1rem 0rem;
    position: relative;
}

/* Logo Container */
.logo-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.logo-container img {
    height: 80px; /* Oder eine passende Größe */
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 0.5rem 0 0;
}

h1 {
    margin-bottom: 0.25rem;
    font-size: 2rem;
}

p {
    margin-top: 0;
    font-size: 1rem;
    color: #666;
}

.plain-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.plain-links a {
    text-decoration: none;
    color: #333;
}

.plain-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .plain-links {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }

    .logo-container {
      position: static;
      margin-bottom: 1rem;
    }
}

/* Hero Section */

.hero {
    background-color: rgba(0,50,73,1);
    padding: 2rem;
    text-align: center;
}

/* Allgemeine Sektionen */

.section {
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

.section ul {
    list-style: disc inside;
}

/* Portfolio */

.portfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio img {
    width: 100%;
    max-width: 300px;
    margin: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
}

/* Footer */

footer {
    background-color: rgba(0,50,73,1);  /*Footer Farbe*/
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Footer-Image (Auto unten) */

.footer-image {
    background-color: rgba(0,50,73,1); /* gleich wie Seitenhintergrund */
    text-align: center;
    padding: 1rem 0;
}

.footer-image img {
    max-width: 150px;
    opacity: 0.8; /* leicht transparent, wirkt edel */
}

/* Hamburger Men� */

.navbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: inline-block;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1000;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: rgba(0, 50, 73, 1);
    height: 4px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

.nav-toggle-label span::after {
    content: '';
    top: 8px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: rgba(245,241,230,1);  /*Navlinks Farbe*/
    border-radius: 8px;
    position: absolute;
    right: 1rem;
    top: 3.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    width: 200px;
    text-align: left;
    z-index: 999;
    
}

.nav-links li {
    border-bottom: 1px solid #00344A;  /*Abgrenzung zwischen den Einträgen*/
    position: relative;
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-links a {
    color:  rgba(0,50,73,1);
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
}

.nav-toggle:checked + .nav-toggle-label + .nav-links {
    max-height: 500px;
    border: 3px solid rgba(0, 50, 73, 1); /*Rahmen ausgeklappt*/
}

.submenu {
  display: none;
  position: static; /* passt für mobile Navigation */
  background-color: rgba(245,241,230,1);    /*Submenu Farbe*/
  padding-left: 1rem;
  list-style: none;
  margin: 0;
}

/* Pfeil-Icon bei Menü mit Unterpunkten */
.has-submenu > a {
  position: relative;
  padding-left: 1.5rem; /* Platz für das Dreieck */
}

.has-submenu.open .submenu {
  display: block;
}

/* Das Dreieck */
.has-submenu > a::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: rgba(0, 50, 73, 1);
  transition: transform 0.2s ease;
}

/* Dreieck zeigt nach unten bei offenem Menü */
.has-submenu.open > a::before {
  transform: translateY(-50%) rotate(90deg);
}

/* Zusatz für die zweite Seite */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem;
  max-width: 1600px; /* maximale Breite */
  margin: 0 auto;     /* zentriert im übergeordneten Container */
}

.option {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: 0.3s ease;
  text-align: center;
  max-width: 800px; /* maximale Breite */
  margin: 0 auto;     /* zentriert im übergeordneten Container */
}

.option:hover {
  transform: scale(1.02);
  background-color: #eef;
}

.option img {
  max-width: 100%;
  border-radius: 4px;
}

.option2 {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: 0.3s ease;
  text-align: center;
  max-width: 800px; /* maximale Breite */
  margin: 0 auto;     /* zentriert im übergeordneten Container */
  max-height: 800px;
  overflow: auto;
  margin-top: 2rem; /* oder z. B. 20px */
}

.option2:hover {
  transform: scale(1.02);
  background-color: #eef;
}

.option2 img {
  max-width: 100%;
  border-radius: 4px;
  max-height: 200px;
}

.optionen {
  margin-top: 1em;
  margin-left: 1rem;
  width: 50%;
  box-sizing: border-box;
}

.compare {
  background: #fff;
  margin: 2rem auto;
  padding: 2rem;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.compare-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}

.compare-item {
  min-width: 200px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.compare-item img, .compare-item video {
  max-width: 100%;
  border-radius: 4px;
}

.preisrechner-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.preisrechner-button:hover {
    background-color: #0056b3;
}

.section h3 {
  font-size: 1em;       /* gleiche Größe wie normaler Text */
  font-weight: bold;    /* fett */
  margin-top: 1em;
  margin-bottom: 0.5em;
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #f5f1e6;
}

footer nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

footer nav a:hover {
  color: #f5f1e6;
}

.info-preisrechner { 
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

.flipcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* Das sorgt für Abstand zwischen den Karten */
  margin-top: 2rem;
}

.flipcard {
  height: 460px; /* Erhöht den Rahmen */
  perspective: 1000px;
   overflow: visible;
  cursor: pointer;
}

.flipcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.flipcard.flipped .flipcard-inner {
  transform: rotateY(180deg);
}

.flipcard.flipped .flipcard-front {
  z-index: 1; /* Nach hinten */
}

.flipcard.flipped .flipcard-back {
  z-index: 2;
}

.flipcard-front,
.flipcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--card-bg, #fff);
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 1rem;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%; /* Wichtig bei gestapelten Elementen */
  box-sizing: border-box;
}



.flipcard-front img {
  width: 100%;
  max-height: 300px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  border-radius: 8px;
  border: 1px solid rgba(0,50,73,1);
}

.flipcard-front {
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: absolute;
  border: 1px solid rgba(0,50,73,1);
}

.flipcard-back {
   z-index: 1;
  position: absolute;
  transform: rotateY(180deg);
  background-color: #f7f7f7;
  text-align: center;
    
}

.flipcard-back .infobox {
  margin-top: 0.5rem;
  background: #e0f0ff;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #333;
  border-left: 4px solid #2196f3;
}

.flipcard-back a {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: underline;
  color: #0073e6;
}

.flipcard:hover .flipcard-front {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.flipcard:hover .flipcard-front img {
  transform: scale(1.05);
}

.flip-hint {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 1.4rem;
  color: #aaa;
  opacity: 0.6;
  pointer-events: none;
  z-index: 10; /* Damit liegt der Hinweis über dem Bild */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

html {
  scroll-behavior: smooth;
}


.container-mehrseitig {
  scroll-margin-top: 200px; /* anpassen an Höhe des Headers oder gewünschten Abstand */
}

.button-link {
  display: inline-block;
  margin-top: 1em;
  padding: 0.375em 0.75em;
  font-size: 1rem;
  line-height: 1.5;
  color: initial;
  background-color: ButtonFace;
  border: 2px outset ButtonHighlight;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

 .button-link:hover {
    background-color: #c0c0c0; /* etwas dunkleres Grau */
  }
  
  .button-standard {
    margin-top: 20px;
    padding: 0.375em 0.75em;
    font-size: 1rem;
    line-height: 1.5;
    color: initial;
    background-color: ButtonFace;
    border: 2px outset ButtonHighlight;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
  }

  .button-standard:hover {
    background-color: #c0c0c0; /* etwas dunkler beim Drüberfahren */
  }
  
  .button-link,
  .button-standard {
    padding: 0.375em 0.75em;
    font-size: 1rem;
    line-height: 1.5;
    color: initial;
    background-color: ButtonFace;
    border: 2px outset ButtonHighlight;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin: 0 10px; /* horizontaler Abstand zwischen Buttons */
    display: inline-block;
  }

  .button-link:hover,
  .button-standard:hover {
    background-color: #c0c0c0; /* dunkler beim Hover */
  }

  .button-row {
    display: flex;
    justify-content: flex-start; /* linksbündig */
    align-items: center;
  }

  /* Optional: kleinere Buttons bei sehr kleinen Bildschirmen */
  @media (max-width: 480px) {
    .button-row {
      flex-direction: column;
      gap: 10px;
    }

    .button-link,
    .button-standard {
      margin: 0; /* Abstand über flex gap */
      width: 100%; /* volle Breite mobil */
      text-align: center;
    }
  }
  
   .container {
    max-width: 1200px;   /* Maximale Breite des Inhalts */
    margin: 0 auto;     /* Zentriert horizontal */
    padding: 0 1em;     /* Innenabstand links und rechts */
  }
  
  #warenkorbTabelle tbody tr td:first-child {
  text-align: center;
}

/* Basis zurücksetzen */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Vollflächiger Container, zentriert */
.startbereich {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0rem;
}

/* Bereiche als Links, vollflächig klickbar */
.startbereich .bereich {
  flex: 1;
  max-width: 600px;
  min-height: 400px;
  background-color: #003249;
  color: white;
  padding: 1rem 1rem 1rem 1rem;
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Hover-Effekt */
.startbereich .bereich:hover {
  background-color: #00476b;
}

/* Text im Bereich */
.startbereich .bereich h2,
.startbereich .bereich p {
  margin: 0.5rem 0;
  text-align: center;
  color: white;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .startbereich {
    flex-direction: column;
    height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-radius: 10px;
  }

  .startbereich .bereich {
    width: 100%;
    max-width: none;
  }
}
.bereich {
  flex: 1 1 300px; /* wächst, schrumpft, Mindestbreite */
  max-width: 500px;
  background:  rgba(0,50,73,1);
  border: 1px solid #ccc;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  color:  rgba(245,241,230,1)
}

.bereich h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #3366cc;
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.button:hover {
  background-color: #254a9a;
}


