/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

:root {
  --accent: #100b30;
  --accent-light: #7b7063;
  --gold: #b59a67;
  --orange: #c58a4a;
  --bg: #f3eee5;
  --bg-soft: #eee7db;
  --card: #fffdf9;
  --text: #100b30;
  --muted: #64748b;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(79, 65, 48, 0.10);
  --header-height: 92px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--accent);
}

a {
  color: inherit;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */

header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

nav {
  width: min(100% - 2rem, 1240px);
  margin: auto;
  min-height: var(--header-height);
  padding: 0.7rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand img {
  width: clamp(200px, 25vw, 300px);
  max-width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.du-orange {
  color: var(--orange);
}

.brand-service {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.45rem;
  text-transform: lowercase;
}

.brand-service::before,
.brand-service::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  max-width: 70px;
}

.brand-sub {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--accent-light);
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.links a {
  text-decoration: none;
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 650;
  position: relative;
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.links a:hover {
  background: #100b30;
  color: #ffffff;
  transform: translateY(-1px);
}

.links a.active-link {
  background: #eeeae1;
  color: var(--accent);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 6rem) 1rem clamp(3.5rem, 6vw, 5.5rem);
  background: linear-gradient(
    180deg,
    rgba(255, 252, 247, 0.55) 0%,
    rgba(243, 238, 229, 0.15) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("logo.png") no-repeat center center;
  background-size: clamp(520px, 78vw, 1050px);
  opacity: 0.055;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: auto;
}

.hero img {
  width: min(82vw, 900px);
  max-width: 900px;
  height: auto;
  margin: 0 auto 0.35rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.hero-service {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-service::before,
.hero-service::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  max-width: 30px;
}

.hero p {
  max-width: 760px;
  margin: 1rem auto 2rem;
  font-size: 1.12rem;
  color: #0f172a;
}

/* =========================================================
   BUTTONS & MAIN
   ========================================================= */

.btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  margin: 0.4rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: var(--card);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

main {
  width: min(100% - 2rem, 1240px);
  margin: auto;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

section {
  margin-bottom: clamp(3.5rem, 6vw, 5rem);
  scroll-margin-top: 130px;
}

section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
  color: #1e293b;
}

/* =========================================================
   LEISTUNGEN & CARDS
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
  border-color: var(--gold);
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.card p {
  color: #1e293b;
  font-size: 0.95rem;
}

.card-hint {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--card);
  padding: 2.2rem;
  border-radius: var(--radius);
  max-width: 550px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  width: auto;
}

.modal-close:hover {
  color: var(--accent);
}

.modal h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  padding-right: 2rem;
}

.modal-description {
  color: #1e293b;
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
}

.modal-list {
  list-style-type: none;
  margin-bottom: 1.8rem;
  padding: 0;
}

.modal-list li {
  padding: 0.45rem 0;
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.95rem;
  color: #0f172a;
}

.modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

.modal-btn {
  margin: 0;
  width: 100%;
  text-align: center;
}

/* =========================================================
   ÜBER MICH & TARGET HIGHLIGHTING
   ========================================================= */

#ueber {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.about-card {
  background: var(--card);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.qualifications-list {
  list-style-type: none;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eeeeee;
}

.qualifications-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
  color: var(--accent);
}

.qualifications-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 1.1rem;
}

/* Styling für das per Klick/Link angesteuerte Element */
.service-item-desc:target {
  background-color: #f5eedf !important; /* Etwas kräftigerer Gold-Farbton für den Fokus */
  border-left: 6px solid #C5A059 !important;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.3);
  transition: all 0.3s ease-in-out;
}

/* =========================================================
   FORMULAR
   ========================================================= */

form {
  background: var(--card);
  max-width: 700px;
  margin: 2rem auto 0;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--accent);
}

input, select, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #cccccc;
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90, 81, 70, 0.10);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  border: none;
  cursor: pointer;
  width: 100%;
}

.privacy-note {
  font-size: 0.9rem;
  color: #1e293b;
  margin: 0.8rem 0 1rem;
  line-height: 1.5;
}

.privacy-note a {
  color: var(--accent);
  font-weight: 600;
}

.captcha-consent {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid #e3ded2;
}

.captcha-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 400;
  color: #0f172a;
  cursor: pointer;
  margin: 0;
}

.captcha-consent input {
  width: auto;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.captcha-description {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.7rem;
  margin-left: 1.7rem;
}

.captcha-wrapper {
  margin-top: 0.8rem;
  min-height: 0;
  overflow: hidden;
}

.g-recaptcha {
  margin-top: 0.5rem;
}

.submit-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================
   FOOTER & TOP BUTTON
   ========================================================= */

footer {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  padding: 2.8rem 1rem;
}

footer p {
  margin-bottom: 0.3rem;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links {
  margin-top: 1rem;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

#topButton {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

/* Unterstützt sowohl .visible als auch .show für JavaScript */
#topButton.visible,
#topButton.show {
  opacity: 1;
  visibility: visible;
  display: block;
  transform: translateY(0);
}

#topButton:hover {
  background: var(--orange);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 1100px) {
  nav { align-items: center; }
  .links { gap: 0.25rem; }
  .links a { font-size: 0.98rem; padding: 0.58rem 0.78rem; }
  .hero { min-height: 520px; display: grid; place-items: center; }
  .hero-content { width: min(100%, 820px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 950px) {
  nav { flex-direction: column; justify-content: center; padding: 0.85rem 0; }
  .brand { justify-content: center; }
  .links { justify-content: center; }
  :root { --header-height: 155px; }
  html { scroll-padding-top: 170px; }
  section { scroll-margin-top: 170px; }
}

@media (max-width: 768px) {
  nav { gap: 0.8rem; min-height: auto; }
  .brand { flex-direction: column; gap: 0.45rem; text-align: center; }
  .brand img { width: min(240px, 70vw); }
  .links { width: 100%; justify-content: center; gap: 0.35rem; }
  .links a { font-size: 0.92rem; padding: 0.48rem 0.66rem; }
  html { scroll-padding-top: 220px; }
  section { scroll-margin-top: 220px; }
  .hero { padding: 3.5rem 1rem 3.5rem; }
  .hero::before { background-size: 125vw; opacity: 0.04; }
  
  .hero img { 
    width: min(340px, 80vw); 
    max-width: 100%; 
    margin-bottom: 1.1rem; 
  }
  
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.45rem); line-height: 1.12; }
  .hero-service { font-size: 0.75rem; letter-spacing: 0.25em; margin-bottom: 0.8rem; }
  .hero p { font-size: 1rem; margin-top: 0.8rem; }
  .btn { display: block; width: 100%; max-width: 320px; margin: 0.65rem auto; text-align: center; }
  main { padding: 3rem 1rem; }
  section { margin-bottom: 4rem; }
  section h2 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  form { padding: 1.3rem; border-radius: 16px; }
  input, select, textarea { font-size: 16px; }
  #topButton { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (max-width: 420px) {
  .brand img { width: 200px; }
  .hero img { width: min(280px, 85vw); }
  .links { gap: 0.25rem; width: 100%; }
  .links a { font-size: 0.78rem; padding: 0.4rem 0.5rem; }
  html { scroll-padding-top: 225px; }
  section { scroll-margin-top: 225px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-service { font-size: 0.67rem; }
  section h2 { font-size: 1.6rem; }
  form { padding: 1.1rem; }
  .captcha-consent { padding: 0.85rem; }
}

/* =========================================================
   ACCESSIBILITY & TOUCH
   ========================================================= */

.links a, .btn, .card, button {
  -webkit-tap-highlight-color: transparent;
}

.card:focus-visible,
.links a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(197, 138, 74, 0.45);
  outline-offset: 3px;
}

@media (hover: none) {
  .card:hover, .btn:hover, .links a:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* =========================================================
   HERO – GROSSES LOGO, KOMPAKTER TEXTABSTAND
   Ohne Service-Symbole
   ========================================================= */
.hero img {
  width: min(82vw, 900px);
  max-width: 900px;
  margin: 0 auto 0.35rem;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

@media (max-width: 950px) {
  .hero img {
    width: min(86vw, 700px);
    max-width: 700px;
    margin-bottom: 0.3rem;
  }
}

@media (max-width: 600px) {
  .hero img {
    width: min(88vw, 390px);
    max-width: 390px;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 420px) {
  .hero img {
    width: min(88vw, 340px);
    max-width: 340px;
    margin-bottom: 0.2rem;
  }
}
