
:root {
  --green-dark: #0a2518;
  --green-mid: #144c31;
  --green-soft: #1c5a35;
  --beige-bg: #f4efe6;
  --beige-card: #f8f3ea;
  --accent: #f3c675;
  --accent-soft: #ffe6ae;
  --text-main: #1f1f1f;
  --text-soft: #6b6b6b;
  --radius-xl: 28px;
  --radius-l: 20px;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 16px 38px rgba(0, 0, 0, 0.18);
  --transition-fast: 0.22s ease-out;
  --transition-slow: 0.55s ease-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e6d3aa 0, #f2ede4 60%, #e4dbcd 100%);
  color: var(--text-main);
  scroll-behavior: smooth;
}

/* Navigation */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 10, 6, 0.98),
    rgba(4, 19, 11, 0.9),
    rgba(4, 19, 11, 0)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fefefe;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, #f5e3c4, #e1c499);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 13px 26px rgba(0, 0, 0, 0.55);
}

.nav-logo img {
  max-width: 100%;
  display: block;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-title {
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.nav-brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-link {
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  opacity: 0.95;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #fff3d8);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #3b2608;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  transform: translateY(0);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.8);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e6d3aa;
}

.nav-mobile {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 18px 12px;
  color: #e6d3aa;
}

.nav-mobile a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
}

.nav-cta-mobile {
  display: inline-block;
  margin-top: 4px;
}

/* Hero */

.hero-wrap {
  max-width: 1180px;
  margin: 28px auto 60px;
  padding: 0 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #1b5235, #030c07 55%, #020605 100%);
  color: #fefefe;
  padding: 30px 30px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(243, 198, 117, 0.34), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-text,
.hero-phone {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  opacity: 0.9;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.1;
}

.hero-sub {
  margin: 0 0 20px;
  font-size: 15px;
  color: #e5e5e5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #3b2608;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.9);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e6d3aa;
  border: 1px solid rgba(255, 255, 255, 0.27);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #e2e2e2;
}

.hero-badges span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

/* Phone mockup */

.hero-phone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  background: radial-gradient(circle at 0% 0%, #444, #000);
  padding: 10px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  border-radius: 14px;
  background: #000000;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: radial-gradient(circle at top, #143725, #040c07 65%);
  padding: 30px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e6d3aa;
  position: relative;
  overflow: hidden;
}

.phone-screen-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.phone-logo {
  max-width: 120px;
}

.phone-screen-headline {
  text-align: center;
  font-weight: 650;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.phone-screen-headline span {
  display: block;
}

.phone-gallery {
  width: 100%;
  background: #f4efe6;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}

.phone-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-button {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #3b2608;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.phone-mail {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.9;
}

/* Sections */

.section {
  padding: 40px 0 60px;
}

.section-light {
  background: rgba(244, 239, 230, 0.8);
}

.section-contact {
  background: radial-gradient(circle at top, #143725, #030b07 70%);
  color: #f7f7f7;
  border-radius: 72px 72px 0 0;
  margin: 48px 14px 0;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.section-header {
  text-align: center;
  margin-bottom: 26px;
}

.section-header-left {
  text-align: left;
}

.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  margin: 0 0 6px;
}

.section-light .section-eyebrow {
  color: #8a806e;
}

.section-contact .section-eyebrow {
  color: #d5c8ae;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.section-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: 14px;
  color: var(--text-soft);
}

.section-light .section-sub {
  color: #7b7264;
}

.section-contact .section-sub {
  color: #e3d8c5;
}

/* Cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.card {
  background: var(--beige-card);
  border-radius: var(--radius-l);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.card-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #514937;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.project-card {
  background: #e6d3aa;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-body {
  padding: 14px 16px 16px;
}

.project-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.project-body p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-soft);
}

.project-meta {
  font-size: 12px;
  color: #7b745e;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
}

.about-text p {
  font-size: 14px;
  color: #5f5646;
}

.about-text p + p {
  margin-top: 8px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffdf8;
  border-radius: var(--radius-l);
  padding: 10px 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.highlight-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #3b2608;
}

.highlight-text {
  font-size: 13px;
  color: #514937;
  margin: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 26px;
}

.section-contact .section-header-left h2 {
  color: #fff9ec;
}

.contact-text p {
  font-size: 14px;
  color: #f0e6d4;
}

.contact-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-l);
  background: rgba(8, 33, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.contact-box a {
  color: #ffe6ae;
  text-decoration: none;
}

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

.contact-form {
  background: rgba(7, 25, 17, 0.96);
  border-radius: var(--radius-l);
  padding: 18px 18px 16px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.65);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.form-field label {
  font-size: 12px;
  margin-bottom: 4px;
  color: #efe4d3;
}

.form-field input,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.35);
  color: #e6d3aa;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(230, 220, 200, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.btn-full {
  width: 100%;
  margin-top: 4px;
}

.form-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #d7cab7;
}

.form-success {
  margin-top: 8px;
  font-size: 12px;
  color: #9fe89c;
}

/* Footer */

.footer {
  padding: 14px 0 18px;
  background: #030b07;
  color: #d3c9b8;
  font-size: 12px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.footer-links a {
  color: #d3c9b8;
  text-decoration: none;
  margin-left: 12px;
}

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

/* Scroll animations */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .cards-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile.open {
    display: block;
  }

  .hero-wrap {
    margin-top: 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px 22px;
  }

  .hero-phone {
    order: -1;
  }

  .hero h1 {
    font-size: 30px;
  }

  .cards-grid,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .phone-frame {
    width: 220px;
  }

  .section {
    padding: 32px 0 46px;
  }
}

/* Unified premium button style for header */
.nav-cta {
  background: #e6d3aa;
  border: 2px solid #f3c675;
  color: #1f1f1f;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 700;
  transition: all .25s ease;
}

.nav-cta:hover {
  background: #f3c675;
  color: #1f1f1f;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Force header link color */
.nav-link, .nav-link:visited {
    color: #e6d3aa !important;
    text-decoration: none !important;
}
.nav-link:hover {
    color: #f3c675 !important;
}

/* Unified premium button refinement */
button, .btn, .nav-cta {
  background:#ffffff;
  border:2px solid #e6d3aa;
  color:#1c1c1c;
  padding:10px 22px;
  border-radius:40px;
  font-weight:700;
  transition:all .25s ease;
}

button:hover, .btn:hover, .nav-cta:hover {
  background:#e6d3aa;
  color:#1c1c1c;
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
}


/* --- Mobile Optimization Additions --- */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 20px;
  }
  .hero-section img {
    width: 100%;
    height: auto;
    border-radius: 22px;
  }
  .nav-shell {
    padding: 12px 16px;
  }
  .nav-link, .nav-cta {
    font-size: 15px;
    padding: 10px 16px;
  }
  .project-card {
    margin: 0 0 24px 0;
  }
  .section {
    padding: 40px 20px;
  }
}

/* --- Footer & Legal Click Fix --- */
footer, a[href="impressum.html"], a[href="datenschutz.html"] {
    position: relative;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Prevent any navigation element from covering the page */
header, .nav-shell, .nav {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

/* Disable any accidental fullscreen overlay */
*, *::before, *::after {
    pointer-events: auto !important;
}

/* --- GLOBAL OPTIMIZATION --- */
html, body {
    margin:0; padding:0;
    font-family:Arial, sans-serif;
    scroll-behavior:smooth;
}

/* section spacing */
.section {
    padding: 60px 20px;
    max-width:1200px;
    margin:auto;
}

/* cards */
.project-card, .card {
    background:white;
    border-radius:20px;
    padding:15px;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    transition:transform .25s ease, box-shadow .25s ease;
}
.project-card:hover, .card:hover {
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(0,0,0,0.22);
}

/* Hero optimization */
.hero-section {
    padding:80px 20px;
    text-align:center;
}
.hero-section img {
    max-width:900px;
    width:90%;
    border-radius:26px;
    box-shadow:0 25px 45px rgba(0,0,0,0.35);
}

/* Navigation final refinement */
.nav-shell {
    background: rgba(10,37,24,0.92);
    backdrop-filter: blur(12px);
    padding:14px 22px;
    position:sticky;
    top:0;
    z-index:9999;
}
.nav-link {
    color:#e6d3aa !important;
    margin:0 12px;
    font-weight:600;
    transition:color .25s ease;
}
.nav-link:hover { color:#f3c675 !important; }

/* premium buttons */
.nav-cta {
    background:white;
    border:2px solid #e6d3aa;
    color:#1c1c1c;
    padding:10px 22px;
    border-radius:40px;
    font-weight:700;
    transition:all .25s ease;
}
.nav-cta:hover {
    background:#e6d3aa;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .hero-section { padding:50px 20px; }
  .hero-section img { width:100%; border-radius:22px; }
  .nav-link, .nav-cta { font-size:15px; padding:8px 14px; }
  .section { padding:40px 20px; }
}

/* --- FOOTER BUTTONS --- */
.footer-btn {
    background:#e6d3aa;
    color:#1c1c1c;
    padding:10px 20px;
    margin:0 10px;
    font-weight:700;
    border-radius:30px;
    text-decoration:none;
    transition:all .25s ease;
}
.footer-btn:hover {
    background:white;
    box-shadow:0 6px 18px rgba(0,0,0,0.25);
}


/* ----------------------------- */
/*        MOBILE OPTIMIZATION    */
/* ----------------------------- */
@media (max-width: 768px) {

  .nav { padding: 10px 15px; }
  .nav-brand-title { font-size: 1.1rem; }

  .hero-wrap { padding: 40px 0; }
  .hero-text h1 { font-size: 1.8rem; line-height: 1.25; }
  .hero-text .hero-sub { font-size: 1rem; }

  .cards-grid,
  .cards-grid-wide {
      grid-template-columns: 1fr !important;
      gap: 20px !important;
  }

  .projects-grid {
      grid-template-columns: 1fr !important;
      gap: 25px !important;
  }

  .project-image img {
      width: 100%;
      height: auto;
      border-radius: 12px;
  }

  .about-grid {
      grid-template-columns: 1fr !important;
      gap: 25px !important;
  }

  .contact-grid {
      grid-template-columns: 1fr !important;
      gap: 20px !important;
  }

  .contact-form input,
  .contact-form textarea {
      font-size: 1rem;
      padding: 14px;
  }

  .btn,
  .btn-primary,
  .btn-ghost {
      width: 100%;
      text-align: center;
      padding: 14px 20px;
      font-size: 1rem;
  }
}


/* ----------------------------- */
/*  FIX: Kontaktbereich zentrieren  */
/* ----------------------------- */
@media (max-width: 1024px) {

  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
  }

  .contact-form,
  .contact-info {
    width: 100% !important;
    max-width: 600px !important;
  }
}

@media (max-width: 600px) {
  .contact-grid {
    padding: 0 10px !important;
  }
}


/* -------- DK Anpassung 2024-12: Kontaktbereich untereinander ------- */

.section-contact .contact-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.section-contact .contact-text,
.section-contact .contact-form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Formularfelder immer untereinander statt nebeneinander */
.section-contact .form-row {
  display: block;
}

.section-contact .form-row .form-field {
  width: 100%;
}


/* DK 2024-12: Mobile Fix für Hero & Kontakt */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-wrap {
    margin: 18px auto 40px;
    padding: 0 14px;
  }

  .section-contact {
    background: #030c07;
  }

  .section-contact .contact-grid {
    padding: 0 14px;
  }
}
