/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/inter-v20-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

:root {
  /* Farbpalette */
  --color-primary: #05615c;
  --color-secondary: #992e00;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #e0e0e0;
  --color-gray-dark: #666666;
  --color-text: #222222;
  --color-primary-hell: #08faee;

  /* Typografie */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-size-base: 1rem;
  --font-size-large: 1.125rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.3;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Borders */
  --border-radius: 8px;

  /* Z-index */
  --z-header: 1000;
  --z-nav: 1100;
  --z-skip-link: 2000;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  z-index: var(--z-skip-link);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--border-radius);
}

.skip-link:focus {
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Fokus-Styles für Barrierefreiheit */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-heading);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.container-narrow {
  max-width: 800px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-sm) 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.logo:hover,
.logo:focus {
  color: var(--color-primary);
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: var(--z-nav);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  z-index: var(--z-nav);
  padding-top: 5rem;
}

.nav.active {
  transform: translateX(0);
}

.nav-list {
  list-style: none;
  padding: var(--spacing-md);
}

.nav-list li {
  margin-bottom: var(--spacing-sm);
}

.nav-link {
  display: block;
  padding: var(--spacing-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link:focus {
  background: var(--color-gray-light);
  color: var(--color-primary);
}

.nav-link.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   HERO SECTION (Split Layout)
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero-split {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-sm);
  background: var(--color-gray-light);
}

.hero-text {
  margin-bottom: var(--spacing-md);
}

.hero-title {
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: var(--font-size-large);
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-md);
}

.hero-svg {
  max-width: 400px;
  width: 100%;
  margin: var(--spacing-md) auto 0;
}

.hero-svg svg {
  width: 100%;
  height: auto;
}

/* ========================================
   SUBPAGE HERO (WebP)
   ======================================== */

.subpage-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subpage-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subpage-hero-title {
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-sm);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #009088;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 169, 0.3);
}
.btn-2 {
  display: inline-block;
  padding: 10px 5px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-primary-2 {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary-2:hover,
.btn-primary-2:focus {
  background: #009088;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 169, 0.3);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #e55a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 108, 40, 0.3);
}

/* ========================================
   SECTIONS
   ======================================== */

.main {
  padding: var(--spacing-xl) 0;
}

.content-section {
  padding: var(--spacing-lg) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

.intro-text {
  text-align: center;
  font-size: var(--font-size-large);
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   CARDS
   ======================================== */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.card {
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-normal);
}

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

.card-icon {
  margin-bottom: var(--spacing-sm);
}

.card-title {
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--color-gray-dark);
}

.card-detailed {
  background: var(--color-gray-light);
  border-left: 4px solid var(--color-primary);
}
.cards-section {
  padding: 2rem 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-icon {
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Inline-SVG auf Containerbreite anpassen */
.card-icon svg {
  width: 3rem;
  height: 3rem;
}

/* Für externes SVG via <img> */
.card-icon-img {
  width: 3rem;
  height: 3rem;
  display: block;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: #555555;
}

/* Responsive: mehrere Spalten ab Tablet */
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  padding: var(--spacing-xl) var(--spacing-sm);
  text-align: center;
  color: var(--color-white);
}

.cta-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.cta-text {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-md);
}

/* ========================================
   FORMS
   ======================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.required {
  color: var(--color-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  border: 2px solid var(--color-gray-medium);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast);
}

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

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

/* ========================================
   LEGAL CONTENT
   ======================================== */

.legal-content h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.legal-content h4 {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  color: var(--color-gray-dark);
}

.legal-content p {
  margin-bottom: var(--spacing-sm);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-xl);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
}

.footer-nav {
  width: 100%;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--color-primary);
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits {
  padding: var(--spacing-xl) 0;
  background: var(--color-gray-light);
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

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

  .hero-content {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-text {
    text-align: left;
  }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
  /* Desktop Navigation */
  .hamburger {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    transform: translateX(0);
    box-shadow: none;
    padding-top: 0;
    background: transparent;
  }

  .nav-list {
    display: flex;
    gap: var(--spacing-sm);
    padding: 0;
  }

  .nav-list li {
    margin-bottom: 0;
  }

  /* Hero Split Layout - Desktop */
  .hero-split {
    flex-direction: row;
    min-height: 100vh;
  }

  .hero-image {
    width: 50%;
    height: 100vh;
  }

  .hero-content {
    width: 50%;
    padding: var(--spacing-xl);
  }

  .hero-svg {
    margin-top: var(--spacing-lg);
  }
  .hero-svg {
    /* Größe anpassen */
    width: 100%;
    max-width: 400px;
    height: 300px;

    /* Hintergrundbild: externe SVG */
    background-image: url("images/img-svg/domain-verkauf-1.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    /* Layout innerhalb des Hero-Bereichs */
    margin: 2rem auto 0;
  }

  /* Optional: responsive Anpassung */
  @media (min-width: 1024px) {
    .hero-svg {
      max-width: 450px;
      height: 320px;
    }
  }

  /* Cards - Desktop */
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.6s ease-out;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Reduced Motion für Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .header,
  .footer,
  .hamburger,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: none;
  background-color: #992e00;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease,
    box-shadow 0.2s ease, background-color 0.2s ease;
}

/* sichtbar, wenn Klasse .back-to-top--visible gesetzt ist */
.back-to-top.back-to-top--visible {
  opacity: 0.8;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: #7a2400; /* etwas dunkleres #992E00 */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Tastaturfokus klar anzeigen */
.back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Optional: auf sehr kleinen Screens etwas kleiner */
@media (max-width: 480px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

/* Smooth Scroll global (optional) */
html {
  scroll-behavior: smooth;
}
.footer-bottom {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid #555;
  color: #dbdbdb;
  text-decoration: none;
}
.icon {
  padding-left: 10px;
  padding-right: 10px;
}
.icon:hover {
  opacity: 0.2;
}
@media screen and (max-width: 640px) {
  .cc {
    display: none;
  }
}

@media screen and (max-width: 1395px) {
  .cc1 {
    display: none;
  }
}

@media screen and (max-width: 6000000px) {
  .cc2 {
    display: none;
  }
}
.res {
  display: flex;
  flex-wrap: wrap;
}
