﻿/* Butterflyeffect – Bereinigtes Stylesheet */

/* -------------------- */
/* Basis & Variablen    */
/* -------------------- */

:root {
  --color-butterfly-gold: #C26D30;
  --color-deep-magenta: #85322D;
  --color-sunset-plum: #6F242E;
  --color-twilight-violet: #3D2148;
  --color-night-sky: #090F2C;
  --color-midnight-indigo: #18153B;
  --color-glowing-ember: #D4986E;
  --color-soft-dawn: #F8F0EA;

  --radius-lg: 1.5rem;
  --radius-sm: 0.5rem;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.30);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #201335 0, var(--color-night-sky) 45%, #020309 100%);
  color: var(--color-soft-dawn);
  line-height: 1.6;
}

/* -------------------- */
/* Layout Grundstruktur */
/* -------------------- */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: 100%;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section h1,
.section h2,
.section h3 {
  color: var(--color-soft-dawn);
  margin-top: 0;
}

.section p {
  color: rgba(248, 240, 234, 0.9);
}

.section.section-accent {
  background: radial-gradient(circle at top, rgba(133, 50, 45, 0.35), rgba(9, 15, 44, 0.98));
  border-radius: var(--radius-lg);
}

/* Zweispaltige Sections (Text + Bild) */

.section.section-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.section.section-two-column.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}

.section-text {
  padding: 0;
}

.section-media {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden; /* falls irgendwann etwas übersteht */
}

/* Reihenfolge drehen bei .reverse */

.section.section-two-column.reverse .section-text {
  order: 2;
}

.section.section-two-column.reverse .section-media {
  order: 1;
}

/* -------------------- */
/* Header & Navigation  */
/* -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(9, 15, 44, 0.97), rgba(24, 21, 59, 0.97));
  border-bottom: 1px solid rgba(210, 152, 110, 0.45);
  padding: 0.5rem 1.5rem 0.75rem;
}

.site-header > .logo-title,
.site-header > .main-nav {
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.logo-symbol {
  width: 64px;                 /* Größe des Icons – nach Geschmack anpassen */
  height: 48px;
  display: block;
  background-image: url("../images/logo2.png"); /* WICHTIG: Pfad relativ zu assets/css/ */
  background-size: contain;    /* Schmetterling komplett zeigen, nicht abschneiden */
  background-repeat: no-repeat;
  background-position: center;
}

/* Keine zusätzlichen Formen mehr darüberlegen */
.logo-symbol::before,
.logo-symbol::after {
  content: none;
}



.site-title {
  font-size: 2.35rem;
  letter-spacing: 0.12em;
  
  color: var(--color-soft-dawn);
  font-family: "Great Vibes", "Pacifico", serif;
}

.site-subtitle {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(248, 240, 234, 0.75);
}

/* Navigation */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(248, 240, 234, 0.8);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  padding: 0.2rem 0 0.6rem;
  font-size: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: rgba(248, 240, 234, 0.8);
  padding: 0.4rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--color-butterfly-gold), var(--color-deep-magenta));
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

/* -------------------- */
/* Hero Bereich         */
/* -------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr);
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) * 1.3);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 152, 110, 0.5);
}

/* WICHTIG: Bild bleibt in Box, keine Verzerrung */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin: 0 0 0.75rem 0;
  color: var(--color-soft-dawn);
}

.hero-content p {
  max-width: 32rem;
  color: rgba(248, 240, 234, 0.9);
}

.lead {
  font-size: 1.05rem;
  color: var(--color-glowing-ember);
  max-width: 48rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

/* -------------------- */
/* Bilder in Sections   */
/* -------------------- */

/* Profil / Section-Bilder – NICHT verzerren, an Box angepasst */
.section-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;  /* Seitenverhältnis bleibt erhalten, keine Stauchung */
  /* kein object-fit mehr, damit nichts abgeschnitten wird */
  border-radius: calc(var(--radius-lg) * 1.1);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 152, 110, 0.5);
  object-fit: scale-down;
}


/* Galerie – einheitliche Kacheln, Bild füllt Box, darf minimal beschnitten werden */
.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: linear-gradient(to bottom right, rgba(24, 21, 59, 0.94), rgba(61, 33, 72, 0.98));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(210, 152, 110, 0.4);
}

/* Bild bleibt in der Kachel, ohne Verzerren */
.gallery-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.92rem;
  color: rgba(248, 240, 234, 0.92);
}

/* -------------------- */
/* Listen, Buttons, Cards */
/* -------------------- */

/* Klassenname an HTML angepasst: highlight-list */
.highlight-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.2rem;
}

.highlight-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.4rem;
  color: rgba(248, 240, 234, 0.9);
}

.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--color-butterfly-gold), var(--color-glowing-ember));
}

/* Buttons – unterstützen .primary / .secondary UND .btn-primary /.btn-secondary */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out, background 0.15s ease-out;
}

/* primär */
.btn.primary,
.btn-primary {
  background: linear-gradient(to right, var(--color-butterfly-gold), var(--color-deep-magenta));
  color: var(--color-soft-dawn);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.btn.primary:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

/* sekundär */
.btn.secondary,
.btn-secondary {
  background: transparent;
  border-color: rgba(210, 152, 110, 0.6);
  color: var(--color-glowing-ember);
}

.btn.secondary:hover,
.btn-secondary:hover {
  background: rgba(24, 21, 59, 0.7);
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem;
  padding: 0;
  margin-top: 1.6rem;
}

.card {
  border-radius: 1.25rem;
  background: linear-gradient(to bottom right, rgba(24, 21, 59, 0.94), rgba(61, 33, 72, 0.98));
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(210, 152, 110, 0.4);
}

.card h3 {
  margin: 0 0 0.4rem 0;
  color: var(--color-glowing-ember);
}

.card p {
  margin: 0;
  font-size: 0.97rem;
  color: rgba(248, 240, 234, 0.9);
}

/* -------------------- */
/* Tabellen (Preise)    */
/* -------------------- */

/* HTML nutzt class="price-table" – CSS daran angepasst */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1.6rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 260px;
}

.price-table thead {
  background: rgba(24, 21, 59, 0.9);
}

.price-table th,
.price-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(210, 152, 110, 0.25);
}

.price-table th {
  font-weight: 600;
  color: var(--color-soft-dawn);
}

.price-table tbody tr:nth-child(even) {
  background: rgba(24, 21, 59, 0.4);
}

/* -------------------- */
/* Kontaktformular      */
/* -------------------- */

/* HTML nutzt class="contact-form" */
.contact-form {
  max-width: 36rem;
  margin-top: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-soft-dawn);
  font-size: 0.95rem;
}

.form-input,
.form-textarea,
.contact-form select {
  width: 100%;
  max-width: 36rem;
  padding: 1rem;
  border: 1px solid rgba(210, 152, 110, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(9, 15, 44, 0.5);
  color: rgba(248, 240, 234, 0.95);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(210, 152, 110, 0.6);
  background: rgba(9, 15, 44, 0.7);
  box-shadow: 0 0 0 2px rgba(210, 152, 110, 0.15);
}

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

/* JS erzeugt class="success-message" */
.success-message {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(144, 238, 144, 0.15);
  border: 1px solid rgba(144, 238, 144, 0.4);
  border-radius: var(--radius-sm);
  color: rgba(144, 238, 144, 0.95);
  text-align: center;
}

.success-message p {
  margin: 0;
}

/* -------------------- */
/* Footer               */
/* -------------------- */

.site-footer {
  border-top: 1px solid rgba(210, 152, 110, 0.4);
  background: radial-gradient(circle at top, rgba(24, 21, 59, 0.98), rgba(9, 15, 44, 1));
  padding: 1.6rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-brand {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(248, 240, 234, 0.8);
}

.footer-links {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--color-glowing-ember);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

/* -------------------- */
/* Links allgemein      */
/* -------------------- */

a {
  color: var(--color-glowing-ember);
}

a:hover,
a:focus-visible {
  color: var(--color-butterfly-gold);
}

/* -------------------- */
/* Responsive           */
/* -------------------- */

@media (max-width: 860px) {
  .logo-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(9, 15, 44, 0.98), rgba(24, 21, 59, 0.98));
    border-bottom: 1px solid rgba(210, 152, 110, 0.4);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 500px;
  }

  .main-nav a {
    padding: 0.6rem 0;
    display: block;
  }

  .hero,
  .section.section-two-column,
  .section.section-two-column.reverse {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.5rem 1rem;
  }

  .section-text,
  .section-media,
  .section.section-two-column.reverse .section-text,
  .section.section-two-column.reverse .section-media {
    padding: 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .site-header,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gallery-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
