/* === BASIS === */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --primary: #1a1a1a;
  --accent: #f37d07;
  --bg-light: #f9f9f9;
  --bg-dark: #000000;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
  background-color: #ffffff;
  color: var(--text-dark);
}

.bg_img {
  background-image: url(../../../account/login_bg.jpg);
  background-position: center;
  background-size: cover;
  width: 100%;
  /* height: 100vh; */
}

hr {
  border: none;                /* Entfernt Standard-Grenzen */
  border-top: 1px solid var(--primary);   /* Nur obere Linie anzeigen */
  margin: 1rem 0;              /* Abstand oben und unten */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p, li {
  font-size: 1.125rem;
  line-height: 1.7;
  /*margin-bottom: 1rem;*/
}

/* === HEADER === */
header {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  min-height: 60px;
}

/* === NAVIGATION === */
.menu-toggle {
  display: none;
  background: none;
  color: var(--text-light);
  font-size: 1.75rem;
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  z-index: 10000;
}

.menu-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover,
nav a:focus {
  background-color: var(--text-light);
  color: var(--bg-dark);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  nav {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    pointer-events: none;
  }

  nav.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  nav a {
    font-size: 1.5rem;
    padding: 1rem;
    white-space: nowrap;
  }
}

@media (min-width: 769px) {
  nav#mobilmenue {
    position: static;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

/* === BUTTONS === */
.btn {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: #333;
  outline: 3px solid var(--accent);
}

.btn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
  border: none;
}

.btn:disabled:hover,
.btn:disabled:focus {
  outline: none;
  background-color: #ccc;
  color: #666;
}


/* === CONTENT === */
main {
  padding: 5.5rem 0.5rem 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 324.8px);
}

section {
  background: var(--bg-light);
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.opener {
  text-align: center;
  margin-bottom: 2rem;
}

.opener h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.opener_start {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 0rem;
}

.opener p {
  font-size: 1.25rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

.opener img {
  display: inline-block;
  max-width: 250px; /* oder eine andere sinnvolle Größe */
  height: auto;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .opener img {
    max-width: 180px;
  }
}

.map-button-overlay {
position: absolute;
  top: 74.5px;
  right: 20px;
  display: flex;
  /*flex-direction: column; */
  gap: 0.5rem;
  z-index: 1000;
}

.map-button-overlay .btn {
  background: white;
  color: black;
  border: 1px solid #ccc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 0.9rem;
}


/* === ACCORDION === */
.accordion-toggle {
  cursor: pointer;
  padding: 1rem;
  background-color: #eee;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-toggle:hover {
  outline: 3px solid var(--accent);
}

.accordion-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(90deg);
}

.accordion-content {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
  background-color: #f9f9f9;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.accordion-content-inner {
  padding: 1rem 0;
}

/* === LISTEN === */
.styled-list {
  margin: 0;
  padding: 0;
  padding-left: 0;
  margin: 1.5rem 0;
}

.styled-list li {
  margin-left: 1.5rem;
  padding: 2px 0;
  margin-bottom: 0.5rem; /* statt 1rem */
  color: var(--text-dark);
  line-height: 1;
}

.styled-list li::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  background-color: var(--accent);
  border-radius: 50%;
}

/* === TABLE === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.05rem;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background: #fff;
}

thead th:first-child {
  border-top-left-radius: 0.75rem;
}

thead th:last-child {
  border-top-right-radius: 0.75rem;
}

table caption {
  text-align: left;
  font-weight: bold;
  font-size: 1.25rem;
  padding: 1rem 0.5rem 0.5rem;
}

table thead {
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover {
  background-color: #f9f9f9;
  transition: background-color 0.2s ease-in-out;
}

/* === FORM === */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
}

form textarea {
  resize: vertical;
}

form input:focus,
form textarea:focus {
  outline: 2px solid var(--accent);
}

.plz-form {
  text-align: center;
  margin: 0 0 0.5rem;/* 1.2rem 0 0.5rem; */
  position: relative;
}

.plz-form .form-input {
  width: 8rem;
  text-align: center;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

@keyframes fallFade {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 50px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
  border-color: red;
}

.ghost-plz {
  font-size: inherit;
  color: red;
  pointer-events: none;
  animation: fallFade 1s ease-out forwards;
  position: absolute;
  white-space: nowrap;
}








.modal {
  position: fixed;
  top: var(--header-height, 60px); /* oder eigene Höhe */
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.modal.show {
  display: flex;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

#modal-map {
  flex: 1;
}

.btn-close {
position: absolute;
  color: var(--text-dark); /* oder eine explizite Farbe wie #000 */
  top: 0.4rem;
  right: 0.25rem;
  background: none;
  border: none;
  font-size: 4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}







/* === BILD === */
.fullwidth-right-img {
  display: flex;
  justify-content: flex-end;
  margin: 3rem 0;
}

.fullwidth-right-img img {
  width: 100%;
  max-width: 1000px;
  border-radius: 0.5rem;
}

/* === TEAM === */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  flex: 1 1 calc(50% - 0.75rem);
  background: #f9f9f9;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  font-size: 1rem;
}

.team-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

@media (max-width: 640px) {
  .team-member {
    flex: 1 1 100%;
  }
}

.hero-text {
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 2rem;
  font-weight: 400;
  color: #333;
}




.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  /* margin-top: 1rem; */
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  color: inherit;
  height: 100%;
}

.project-card:hover,
.project-card:focus {
  transform: translateY(0px);
  /*transform: translateY(-4px);*/
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.0);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.logo-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.project-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.project-info {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.project-card:hover .project-info,
.project-card:focus .project-info {
  opacity: 1;
}

.project-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.project-info p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
}





/* === FOOTER === */
footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 1.5rem;
  font-size: 1rem;
  color: #333;
}

/* === FOOTER NEU === */
.site-footer {
  background-color: #f0f0f0;
  padding: 3rem 1rem 1.5rem;
  color: #333;
  font-size: 1rem;
  border-top: 1px solid #ddd;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-block {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-block h4 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: var(--primary);
}

.footer-block p,
.footer-block a {
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #333;
  /* color: var(--accent); */
}

.footer-bottom {
  flex: 1 1 100%;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #000;
}


@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-block {
    align-items: center;
    text-align: center;
  }

  .footer-block h4 {
    text-align: center;
  }

  .footer-links {
    padding: 0;
  }

  .footer-links li {
    text-align: center;
  }
}






.contact-person {
  display: flex;
  flex-direction: column;   /* Stapelt Elemente untereinander */
  align-items: center;      /* Zentriert sie horizontal */
  padding: 1rem 0;
  background: transparent;
  box-shadow: none;
}


.contact-card.no-image {
  background-color: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  max-width: 50%;
  width: 100%;
}

.contact-details h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-align: center;
}

.contact-person h2 {
  text-align: center;
}

.contact-details p {
  margin: 0.25rem 0;
  font-size: 1rem;
  text-align: center;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .contact-card.no-image {
    max-width: 90%;
  }
}




.contact-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem;
  flex-wrap: wrap;
}

.contact-btn {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-btn:hover,
.contact-btn:focus {
  background-color: #333;
  outline: 3px solid var(--accent);
  color: var(--text-light);
}








.floating-button {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-sans);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;           /* Verhindert Zeilenumbruch */
  max-width: 90vw;               /* Beschränkt Breite auf kleinen Geräten */
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-button:hover,
.floating-button:focus {
  background-color: #d96d05;
  transform: translateX(-50%) scale(1.05);
  outline: 3px solid rgba(243, 125, 7, 0.5);
}


.floating-button.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-button {
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.simple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.simple-gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* === SLIDESHOW === */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 60vh; /* feste Höhe */
  max-height: 300px;
  overflow: hidden;
  border-radius: 0.5rem;
}

/* Slide-Grundstil mit schöner Überblendung */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Bild wird in Originalgröße zentriert angezeigt */
.slide img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  border-radius: 0.5rem;
}

/* Navigation */
.slideshow-prev,
.slideshow-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 0.75rem 1rem;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  border: none;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  z-index: 10;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.slideshow-prev {
  left: 10px;
}

.slideshow-next {
  right: 10px;
}

/* Indikator unten rechts */
.slideshow-indicator {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  z-index: 5;
}

/* TAGS */ 
.bank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.bank-tag {
  display: inline-flex;
  align-items: center;
  background-color: #f0f0f0;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease;
}

.bank-tag:hover {
  background-color: var(--accent);
  color: white;
}

.bank-tag .emoji {
  font-size: 1.2rem;
  margin-right: 0.4rem;
}

.bank-tag {
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 0.5rem;
}

.bank-tag:hover {
  /*background-color: var(--bg-dark);*/
  background-color: #f0f0f0;
  color: var(--text-dark);
  outline: 3px solid var(--accent);
}

/* Modal-Stil */
.tag-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.tag-modal.active {
  display: flex;
}

.tag-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-align: center;
}

.tag-modal-content h3 {
  margin-top: 0;
  color: var(--primary);
}

.tag-modal-content p {
  font-size: 1.05rem;
}

.tag-modal-close {
  margin-top: 1rem;
  background-color: var(--accent);
  color: white;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* ==== PLAUDER-ROULETTE DESIGN ==== */
.roulette-box {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  background: #fffefa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 2px dashed var(--accent);
}

.roulette-header {
  margin-bottom: 1rem;
}

.roulette-icon {
  width: 64px;
  margin-bottom: 0.5rem;
}

.btn-shuffle {
  background-color: var(--accent);
  color: white;
  font-size: 1.1rem;
  margin: 1rem auto;
  display: inline-block;
}

.btn-shuffle:hover {
  background-color: #d96d05;
  transform: scale(1.05);
}

.frage-box {
  margin-top: 1rem;
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
}

.frage-box::before {
  content: "❝";
  font-size: 2rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--accent);
  opacity: 0.3;
}

.bewertung-sterne {
  margin-top: 1rem;
}

.stern-btn {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.2s ease;
}

.stern-btn:hover {
  background: var(--accent);
  color: #fff;
}

.star-rating {
  display: inline-flex;
  justify-content: center;
  gap: 0.3rem;
  font-size: 2rem;
  user-select: none;
  cursor: pointer;
}

.star-rating .star {
  color: #ccc;
  transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating .star.hover,
.star-rating .star.active {
  color: var(--accent);
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.bewertung-info {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #444;
}

.frage-text {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.5rem;
}

.star-rating .star {
  color: #ccc;
  transition: color 0.3s, transform 0.2s;
}

.star-rating .star.hover,
.star-rating .star.active {
  color: var(--accent);
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.bewertung-info {
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  margin-top: 0.25rem;
}
