/* ========================================
   GLOBALE FARBEN
   ======================================== */
:root {
  --akzent: rgba(240, 221, 201, 0.95);
  --akzent-strich: rgba(240, 221, 201, 0.6);
  --akzent-hover: rgba(240, 221, 201, 0.9);
  --akzent-button: rgba(240, 221, 201, 0.9);
  --akzent-chip: rgba(240, 221, 201, 0.12);
}

.burger {
  display: none;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('hintergrund02.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

/* Globale Typografie */
h1 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

p {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.50);
  z-index: 0;
}

/* Top Navigation */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: stretch;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 100;
  height: 60px;
}

.topnav-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s, border-color 0.3s;
  font-weight: 400;
  white-space: nowrap;
  padding: 0 12px;
  position: relative;
  border-bottom: 2px solid transparent;
}

.topnav-link:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 30%;
  height: 40%;
  width: 1px;
  background: transparent;
}

.topnav-link.active {
  color: rgb(255, 255, 255);
  border-bottom: 2px solid var(--akzent);
}

.topnav-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.container {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 60px 60px 60px;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  will-change: filter, transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.logo {
  width: 600px;
  max-width: 90%;
  filter: drop-shadow(0px 8px 24px rgba(146, 144, 144, 0.6));
}

.intro-text {
  max-width: 1500px;
  margin-bottom: 8px;
}

/* Kacheln */
.kacheln {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1500px;
}

.kachel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--akzent-strich);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
}

.kachel-bild {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.kachel h2 {
  font-size: 22px;
  min-height: 80px;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
}

/* Scroll Navigation rechts */
.scroll-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  z-index: 10;
}

.dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  opacity: 0.4;
  transition: opacity 0.3s, background 0.3s;
  cursor: pointer;
}

.dot::before {
  content: attr(data-label);
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.dot:hover::before {
  opacity: 1;
}

.dot.active {
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.dot:hover {
  opacity: 1;
}

#start {
  justify-content: center;
  align-items: center;
}

#start .section-content {
  align-items: center;
  margin-top: -60px;
}

#start .logo {
  width: 1000px;
}

.scroll-arrow {
  width: 30px;
  margin-top: 100px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.footer {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

/* Ablauf & Methodik */
.ablauf-row {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.ablauf-row.reverse {
  grid-template-columns: 1fr 35%;
}

.ablauf-row.reverse .ablauf-bild {
  order: 2;
}

.ablauf-row.reverse .ablauf-text {
  order: 1;
}

.ablauf-bild {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ablauf-bild img {
  width: 70%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  opacity: 0.8;
}

#ablauf {
  align-items: flex-start;
}

#ablauf .section-content {
  gap: 1px;
}

.ablauf-text h2 {
  color: var(--akzent);
}

/* Über mich */
#ueber-mich {
  align-items: flex-start;
}

.ueber-portrait-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  margin-top: 20px;
}

.ueber-portrait img {
  width: 100%;
  max-width: 450px;
  height: 400px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.ueber-bio {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--akzent-strich);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
}

.ueber-bio h2 {
  margin-bottom: 8px;
  color: var(--akzent);
}

.ueber-bio .credentials {
  color: var(--akzent-hover);
  margin-bottom: 20px;
}

.ueber-bio p {
  margin-bottom: 14px;
}

.partnerin-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.partnerin-text {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--akzent-strich);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
}

.partnerin-text h2 {
  color: var(--akzent);
}

.partnerin-bild img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  height: auto;
  display: block;
  border-radius: 4px;
}

.werte-section {
  margin-top: 60px;
}

.werte-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.wert {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--akzent-strich);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
}

.wert h3 {
  margin-bottom: 8px;
  color: var(--akzent);
}

/* Kontakt */
#kontakt {
  align-items: flex-start;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-top: 30px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  color: var(--akzent-hover);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 14px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--akzent-strich);
  background: rgba(255, 255, 255, 0.08);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 100, 100, 0.6);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-button {
  background: var(--akzent-button);
  color: #1a1a1a;
  border: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s, opacity 0.3s;
  font-family: inherit;
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.form-button:hover {
  background: rgba(240, 221, 201, 1);
}

.hidden-field {
  display: none;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 12px;
  color: var(--akzent-hover);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain;
}

.info-value {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s;
}

a.info-value:hover {
  color: var(--akzent-hover);
}

/* Projekte & Referenzen */
#projekte {
  align-items: flex-start;
}

.projekte-block {
  max-width: 1500px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--akzent-strich);
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
}

.projekte-block h2 {
  color: var(--akzent);
  margin-bottom: 12px;
}

.projekte-block p {
  margin-bottom: 12px;
}

.projekte-block p:last-child {
  margin-bottom: 0;
}

.fachrichtungen {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  background: var(--akzent-chip);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
}

.button-wrapper {
  position: relative;
  align-self: flex-start;
  margin-top: 8px;
}

.button-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
  white-space: nowrap;
  margin-bottom: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.button-wrapper:hover .button-tooltip {
  opacity: 1;
}

.kontakt-form:has(input:valid):has(textarea:valid):has(input[name="email"]:valid) .form-button {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.kontakt-form:has(input:valid):has(textarea:valid):has(input[name="email"]:valid) .button-tooltip {
  display: none;
}

/* Success Popup */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}

.success-popup.show {
  display: flex;
}

.success-content {
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid var(--akzent-strich);
  border-radius: 8px;
  padding: 40px 50px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--akzent);
  color: #1a1a1a;
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-content h3 {
  color: var(--akzent);
  margin-bottom: 12px;
}

.success-content p {
  margin-bottom: 24px;
}

.success-content .form-button {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
  margin: 0 auto;
}

/* ========================================
   MOBILE OPTIMIERUNG (bis 768px Breite)
   ======================================== */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  p { font-size: 15px; }

  .section-content {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .section {
    padding: 80px 20px 40px 20px;
  }

  /* Burger Button */
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 200;
  }

  .burger span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s, opacity 0.3s;
  }

  .burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger.open span:nth-child(2) {
    opacity: 0;
  }

  .burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Nav als Overlay */
.topnav {
  flex-direction: column;
  height: auto;
  padding: 80px 20px 30px 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  gap: 12px;
}

  .topnav.open {
    transform: translateY(0);
  }

.topnav-link {
  font-size: 18px !important;
  padding: 16px;
  border-bottom: none !important;
  min-width: auto;
  width: 100%;
  justify-content: flex-start;
  letter-spacing: 0.5px;
}

  .topnav-link.active {
    color: var(--akzent);
    border-bottom: none;
  }

  .topnav-link::after {
    display: none !important;
  }

  #start .logo {
    width: 90%;
  }

  .scroll-arrow {
    width: 22px;
    margin-top: 50px;
  }

  .kacheln {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kachel h2 {
    min-height: auto;
    font-size: 18px;
  }

  .ablauf-row,
  .ablauf-row.reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ablauf-row.reverse .ablauf-bild,
  .ablauf-row.reverse .ablauf-text {
    order: initial;
  }

  .ablauf-bild img {
    width: 40%;
  }

  .ueber-portrait-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ueber-portrait img {
    height: auto;
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }

  .partnerin-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partnerin-bild img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .werte-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kontakt-info {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
  }

  .scroll-nav {
    display: none;
  }

  .projekte-block {
    padding: 16px 20px;
  }

  .footer {
    font-size: 11px;
    padding: 0 20px;
    text-align: center;
  }

  .ueber-bio,
  .partnerin-text,
  .wert {
    padding: 16px 20px;
  }

  .success-content {
    padding: 30px 24px;
  }

  .success-content h3 {
    font-size: 20px;
  }

  .success-content p {
    font-size: 14px;
  }
}

/* ========================================
   KLEINE HANDYS (bis 480px Breite)
   ======================================== */
@media (max-width: 480px) {

  h1 {
    font-size: 24px;
  }

  .topnav-link {
    font-size: 9px;
    padding: 0 6px;
  }

  .section {
    padding: 70px 16px 30px 16px;
  }

}