/* ----------------------------
   Globale Variablen & Baseline
---------------------------- */
:root {
  --color-primary: #C79282;   /* Salbeigrün */
  --color-secondary: #E8DED1; /* Sandbeige */
  --color-accent: #C79282;    /* Kupferrosé */
  --color-text: #2C2C2C;      /* Dunkles Anthrazit */
  --color-bg: #FFFFFF;        /* Weiß */
  --color-header: #F9F4EB;    /* Header‑Hintergrund */
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body { font-family: 'Inter', sans-serif; }

/* ----------------------------
   Header + Navigation
---------------------------- */
header {
  width: 100%;
  height: 150px;             /* feste Höhe für Logo */
  min-height: 150px;
  display: flex;
  align-items: center;       /* Navigation vertikal zentriert */
  justify-content: space-between;
  padding: 0 2rem;           /* links/rechts Innenabstand */
  background: var(--color-header);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 150px;
  width: auto;
  padding: 18px 0;          /* 18 px oben & unten laut Nutzerwunsch */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

nav .link-active {
	text-decoration:underline;
}

nav a:hover {
  color: var(--color-primary);
}

.btn-contact {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-contact:hover { background: #b7796c; }


.link {
  color: #005f88;           /* dezentes Blau, gut lesbar */
  text-decoration: none;    /* keine Unterstreichung */
  transition: color 0.2s ease;
}

.link:hover,
.link:focus {
  color: #003f5c;           /* dunkler beim Hover/Focus */
  text-decoration: underline;
}

.link:visited {
  color: #4c3f88;           /* optional: Farbe für besuchte Links */
}



/* Burger‑Icon (Mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 1100;
}

.burger .line {
  width: 100%;
  height: 3px;
  background-color: #000; /* dauerhaft schwarz */
  border-radius: 2px;
  display: block;
}

@media (max-width: 768px) {
  .burger {
    display: flex !important;
  }

  nav {
    position: absolute;
    top: 150px;
    right: 0;
    left: 0;
    background: var(--color-header);
    transform-origin: top right;
    transform: scaleY(0);
    transition: transform 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  nav.open {
    transform: scaleY(1);
  }

	nav ul {
	  flex-direction: column;
	  gap: 1.5rem; /* vorher 1rem */
	  padding: 2rem;
	}
}

@media (max-width: 768px) {
  .intro-text .grid-stack {
    display: flex;
    flex-direction: column;
  }
}

/* ----------------------------
   Hero Section (Startseite)
---------------------------- */
.hero {
  position: relative;
  width: 100vw;
  height: 70vh;
  max-height: 400px;
  min-height: 280px;
  background-image: url("img/banner-startseite.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    height: 30vh;
    background-position: center top;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--color-secondary);
  max-width: 90%;
  backdrop-filter: blur(3px);
}

@media (max-width: 768px) {
  .hero-text {
    bottom: 1rem;
    left: 1rem;
  }
}

.hero-text h1,
.hero-text h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.hero-text h1 {
  font-size: 2rem;
}

.hero-text h2 {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1rem;
  }

  .hero-text h2 {
    font-size: 0.65rem;
  }
}

/* ----------------------------
   Allgemeine Container & Grid
---------------------------- */
.container,
.leistungen-section {
  width: min(95%, 1400px);
  margin-inline: auto;
  padding: 4rem 0;
}

/* ----------------------------
   Intro (Über mich)
---------------------------- */
.intro {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: flex-start;
}

.intro-text {
  flex: 0 0 65%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}
.leistungen-text { flex: 0 0 90%; }
.intro-img  { flex: 0 0 35%; text-align: center; }

.intro-img img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.intro-text h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.leistungen-text h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}


/* ----------------------------
   Features / Leistungen Grid
---------------------------- */
.features { background: var(--color-secondary); padding: 4rem 0; }
.features-grid,
.grid {
  display: grid;
  grid-template-columns: 1fr; /* Standard: 1 Spalte */
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid,
  .grid {
    grid-template-columns: 1fr 1fr; /* ab Tablet: 2 Spalten */
  }
}

.feature-item,
.leistung-box {
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-item img:first-child,
.leistung-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.feature-item-content,
.leistung-box-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-item-footer {
	padding: 1rem 1.5rem;
	margin-top: auto;
	text-align: right;
}

.feature-item-content h3,
.leistung-box-content h3 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* Abstände & Demo‑Bilder */
.feature-item-content .demo { width: 100%; height: 120px; object-fit: cover; margin-bottom: 1rem; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

/* Sekundäre Button (Features) */
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  align-self: flex-end;
  margin-top: 1rem;
}

.btn-secondary:hover { background: #689c8d; }

/* ----------------------------
   Kontakt & Impressum Layout
---------------------------- */
.kontakt-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  align-items: flex-start;
}

.kontakt-links {
  flex: 0 0 40%;
  padding: 2rem;
  background: var(--color-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 180px;
  height: fit-content;
}

.kontakt-links h2,
.kontakt-rechts h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.kontakt-rechts { flex: 1; padding: 1.2rem; width:99%}


    .accordion {
      max-width: 900px;
      margin: 1rem auto;
      padding: 0 1rem;
    }
    .accordion-item {
      background: var(--color-secondary);
      margin-bottom: 1rem;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .accordion-header {
      background: var(--color-primary);
      color: var(--color-bg);
      padding: 1rem 1.5rem;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .accordion-header:hover {
      background: #689c8d;
    }
    .accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      background: var(--color-bg);
      padding: 0 1.5rem;
    }
    .accordion-content p {
      padding: 1rem 0;
    }
    .accordion-item.active .accordion-content {
      max-height: 500px; /* ausreichend Platz für den Inhalt */
    }


form { display: grid; gap: 1rem; }
label { font-weight: bold; }

input,
select,
textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: var(--color-secondary);
}

textarea { resize: vertical; min-height: 100px; }

button {
  padding: 0.8rem 1.2rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover { background: #689c8d; }

@media (max-width: 768px) {
  .intro { flex-wrap: wrap; align-items: flex-start; }
  .intro-text, .intro-img { flex: 1 1 100%; align-items: flex-start;}
  .kontakt-container { flex-direction: column; }
  .kontakt-links, .kontakt-rechts { flex: 1 1 100%; position: static; }
}

/* ----------------------------
   Footer
---------------------------- */
footer {
  background: var(--color-secondary);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
}


.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-primary);
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

.timeline-point {
  position: absolute;
  left: -0.65rem;
  top: 0.3rem;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-secondary);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}