/* Grundstruktur */
/* Poppins 600 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/poppins/poppins-v23-latin-600.woff2') format('woff2');
  font-display: swap;
}

/* Inter 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter/inter-v19-latin-regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --background: #f8f9fa;
  --text: #1b1f23;
  --accent: #0052cc;
  --accent-dark: #003e99;
  --cta: #ff7a00;
  --cta-dark: #e06b00;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */

header {
  background: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; /* Größe anpassen nach Geschmack */
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--cta); /* Orange beim Hover */
}

.logo {
  display: flex;
  align-items: center; /* vertikal mittig */
  justify-content: center; /* horizontal mittig falls nötig */
  gap: 15px;
}


.logo-icon {
  width: 60px;  /* Größe anpassen wie gewünscht */
  height: 60px;
  object-fit: contain;
  display: block;
}



nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  background: #ffffff;
  padding: 80px 0;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero-image img {
  width: 300px;       /* Max. Breite des Bildes */
  height: auto;       /* Proportional skalieren */
  object-fit: contain;
  align-self: flex-start;  /* Bleibt oben, neben dem Text */
}

@media (max-width: 768px) {
  .hero-image img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}


.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-block;
  background: var(--cta);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-cta:hover {
  background: var(--cta-dark);
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Leistungen */

.leistungen {
  padding: 60px 0;
  background: #f0f0f0;
}

.leistungen h2 {
  text-align: center;
  margin-bottom: 40px;
  font-family: 'Poppins', sans-serif;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.leistung {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.leistung img {
  width: 60px;
  margin-bottom: 15px;
}

.leistung h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Über mich */

.uebermich {
  padding: 60px 0;
}

.uebermich-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.portrait img {
  width: 200px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.uebermich-text {
  flex: 1;
}

.uebermich-text h2 {
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

/* Kontakt */

.kontakt {
  background: #e9ecef;
  padding: 60px 0;
}

.kontakt-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.kontakt-form {
  flex: 1;
}

.kontakt-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kontakt-form input,
.kontakt-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.kontakt-info {
  flex: 1;
}

/* Footer */

footer {
  background: var(--text);
  color: white;
  padding: 30px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
}

footer a:hover {
  text-decoration: underline;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-overlay.active {
  display: flex !important;
  animation: fadeIn 0.4s ease-in-out forwards;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.popup-content {
  background: white;
  color: var(--text);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  border: 3px solid var(--cta); /* Orange Rahmen */
  font-family: 'Inter', sans-serif;
}


.popup-content h2 {
  margin-top: 0;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

.popup-content button {
  margin-top: 1.5rem;
  padding: 12px 24px;
  background: var(--cta);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background 0.2s ease;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
}

.popup-content label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}


.popup-content button:hover {
  background: var(--cta-dark);
}


.popup-content button:hover {
  background: var(--cta-dark);
}

.leistungen-detail {
  padding: 80px 0;
  background: #f8f9fa;
}

.leistungen-detail h1 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 40px;
}

.leistung-box {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.leistung-box h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.leistung-box p {
  font-size: 1rem;
  line-height: 1.6;
}

a.leistung {
  text-decoration: none !important;
  color: inherit !important;
}

a.leistung:hover {
  text-decoration: none !important;
  color: inherit !important;
}



/* CTA Button Anpassung */
.btn-cta {
  display: inline-block;
  background: var(--cta);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  margin-top: 40px;
  transition: background 0.2s;
}

.btn-cta:hover {
  background: var(--cta-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .leistung-box {
    padding: 20px;
  }
  .leistung-box h2 {
    font-size: 1.3rem;
  }
  .btn-cta {
    width: 100%;
  }
}

#kontaktPopup .popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

#kontaktPopup input,
#kontaktPopup textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#kontaktPopup label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

#kontaktPopup button {
  margin-top: 1rem;
}

/* Content-Box für rechtliche Seiten (Datenschutz, Impressum) */
.content-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  margin: 2rem auto;
  max-width: 800px;
}

/* Überschriften */
.content-box h1 {
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1.5rem;
  text-align: center;
}

.content-box h2 {
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
}

/* Paragraphen */
.content-box p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Links */
.content-box a {
  color: var(--cta);
  text-decoration: none;
}

.content-box a:hover {
  text-decoration: underline;
}

/* Kontakt-Infoblock (für Impressum/Datenschutz) */
.info-box {
  background: #e9ecef;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border-left: 5px solid var(--accent);
}

.info-box strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-box a {
  color: var(--cta);
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

.card-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  border-left: 6px solid var(--accent);
}

.card-box h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.card-box ul {
  list-style: disc inside;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.card-box ul li {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card-box p {
  margin-top: 1rem;
}

html {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 120px; /* Genaue Höhe deines Headers */
}

.leistung-box.active {
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.6);
  transition: box-shadow 0.3s ease-in-out;
}

a.leistung {
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.leistung:hover {
  transform: translateY(-12px); /* leicht anheben */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* dezenter Schatten */
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #000;
  display: block;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav#nav-menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100%;
    right: 20px;
    width: 200px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 999;
  }

  nav#nav-menu.active {
    display: flex;
  }

  nav#nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  nav#nav-menu ul li a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
  }
}
