/* ===== VARIABLES ===== */
:root {
  --bg:        #fafaf8;
  --bg-alt:    #f2f0eb;
  --bg-card:   #ffffff;
  --gold:      #b8960c;
  --gold-dark: #9a7c08;
  --gold-bg:   #fdf6e3;
  --text:      #1a1a1a;
  --text-muted:#5a5a5a;
  --border:    #ddd9d0;
  --shadow:    0 2px 12px rgba(0,0,0,0.07);
  --font-main: 'Georgia', 'Times New Roman', serif;
  --font-ui:   'Arial', 'Helvetica', sans-serif;
  --navbar-height: 70px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-dark); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: rgba(250, 250, 248, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.navbar-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--navbar-height) 2rem 4rem;
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      var(--bg-alt) 100%
    );
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 720px;
}

/* Large logo in hero */
.hero-logo-wrap {
  display: inline-block;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.hero-logo {
  display: block;
  height: 420px;
  width: auto;
  max-width: 100%;
}

.hero-subtitle {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== SECTIONS COMMON ===== */
.section { padding: 6rem 2rem; }

.section:nth-child(even) { background-color: var(--bg-alt); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

/* gold underline accent on section titles */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0.6rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-icon {
  color: var(--gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== ABOUT ===== */
.about { background-color: var(--bg) !important; }

.about-inner { max-width: 860px; }

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-text .section-title { text-align: left; margin-bottom: 1.5rem; }
.about-text .section-title::after { margin-left: 0; }

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-number {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-icon { color: var(--gold); flex-shrink: 0; display: flex; align-items: center; }

/* ===== FORM ===== */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }

/* ===== FOOTER ===== */
.footer {
  background: #f0ede5;
  border-top: 1px solid var(--border);
  padding: 2rem;
  overflow-x: hidden;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-word;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-nav a { font-size: 0.85rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--gold); }

/* ===== PORTFOLIO ===== */
.portfolio { background-color: var(--bg-alt); }

.portfolio-grid {
  display: grid;
  /* Desktop-Ansicht: 3 Spalten */
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.portfolio-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.portfolio-card:hover .portfolio-img { transform: scale(1.04); }

.portfolio-info {
  padding: 1rem 1.25rem 1.25rem;
}

.portfolio-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.portfolio-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.portfolio-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2.5rem;
  font-style: italic;
}

/* ===== HAMBURGER BUTTON ===== */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.navbar-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE OPTIMIERUNG (NEU) ===== */
@media (max-width: 768px) {
  .portfolio-grid {
    /* Wechsel auf eine Spalte für bessere Lesbarkeit auf Mobile */
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .portfolio-info {
    /* Etwas mehr Padding für Touch-Geräte */
    padding: 1.25rem;
  }

  .portfolio-title {
    /* Schriftgröße für Überschriften leicht anpassen */
    font-size: 1.1rem;
  }

  .portfolio-caption {
    font-size: 0.9rem;
  }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  padding: 1.25rem 2rem;
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--gold);
}
.cookie-btn-secondary:hover {
  background: var(--gold-bg);
}

.cookie-btn-primary {
  background: var(--gold);
  color: #fff;
}
.cookie-btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  min-height: 100vh;
  background: var(--bg);
  padding: calc(var(--navbar-height) + 3rem) 1.5rem 5rem;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.8;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--gold-dark); }

.legal-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}

.legal-inner h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-inner p { margin-bottom: 1rem; }

.legal-inner ul {
  margin: 0.5rem 0 1rem 1.5rem;
}
.legal-inner ul li { margin-bottom: 0.3rem; }

.not-found {
  text-align: center;
  padding: 8rem 2rem;
  font-family: var(--font-ui);
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 1rem; }

  /* Hamburger visible, desktop links hidden by default */
  .navbar-hamburger { display: flex; }

  .navbar-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 250, 248, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 0.5rem 0 1rem;
    backdrop-filter: blur(8px);
  }

  .navbar-links.is-open { display: flex; }

  .navbar-links li { width: 100%; }

  .navbar-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  .navbar-links a:hover { color: var(--gold); }

  /* Hero Logo Optimierung für Mobile */
  .hero-logo-wrap {
    display: block;      /* Nimmt die volle Breite des Containers ein */
    width: 100%;         /* Stellt sicher, dass der Rahmen sich dehnt */
    padding: 0.5rem;     /* Reduziertes Padding auf Mobile für mehr Bildfläche */
    box-sizing: border-box;
  }

  .hero-logo { 
    height: auto;        /* Höhe auf auto, damit das Seitenverhältnis stimmt */
    width: 100%;         /* Logo nutzt die volle verfügbare Breite */
    max-width: 100%; 
  }

  .services-grid { grid-template-columns: 1fr; }

  /* FIX: Hier stand vorher repeat(2, 1fr), jetzt korrekt einspaltig */
  .portfolio-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-stats { flex-direction: column; gap: 1.5rem; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; gap: 0.6rem 1.25rem; }
  .footer-copy { max-width: 100%; }

  .hero { padding: calc(var(--navbar-height) + 1rem) 1rem 3rem; }
  .section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .navbar-logo img { height: 38px; }
  
  /* Speziell für sehr kleine Handys */
  .hero-logo-wrap {
    padding: 0;          
    background: transparent; 
    box-shadow: none;    
  }
}