﻿:root {
  --bg: #ffffff;       
  --fg: #0b0b0e;        
  --muted: #555a64;     
  --accent: #008080; 
  --brand: #0097a7;  
  --card: #ffffff;       
  --line: #e0e0e0;      
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .2); 
  --space: clamp(14px, 2vw, 22px);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 system-ui, Segoe UI, Roboto, Arial
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: var(--accent); 
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  max-width: var(--max);
  margin: auto;
  padding: 0 var(--space)
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: .4em 0
}

h1 {
  font-size: clamp(28px, 5vw, 44px)
}

h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  text-align: center; /* Zentriert die Überschriften */
}

h2 {
  margin-top: 2.5em; 
}

h3 {
  font-size: clamp(18px, 2.2vw, 22px)
}

p {
  color: var(--fg);
  opacity: .95
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px var(--space);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .75); 
  backdrop-filter: saturate(140%) blur(10px);
  /* ★ GEÄNDERT: Trennlinie dicker */
  border-bottom: 2px solid var(--line);
  z-index: 10
}

.nav__menu {
  display: flex;
  gap: 18px;
  align-items: center
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: .4rem .6rem;
  border-radius: 8px
}

@media (max-width: 880px) {
  .nav__toggle {
    display: block
  }
  .nav__menu {
    position: fixed;
    inset: 58px var(--space) auto var(--space);
    display: none;
    flex-direction: column;
    background: var(--card);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow)
  }
  body.nav-open .nav__menu {
    display: flex
  }
}

.btn {
  display: inline-block;
  padding: .7rem 1.1rem;
  /* ★ GEÄNDERT: Rand dicker und in Akzentfarbe */
  border: 2px solid var(--accent);
  border-radius: 10px
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff; 
  border: none
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.15);
}

.hero__content {
  position: absolute;
  inset: auto 0 6%;
  display: grid;
  gap: 12px;
  max-width: var(--max);
  margin: auto;
  padding: 0 var(--space);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.85), transparent 50%);
  padding-bottom: 3%;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- FINALE MOBIL-KORREKTUR --- */
@media (max-width: 768px) {
  .hero {
    /* Keine speziellen Regeln mehr nötig, es verhält sich wie ein normaler Block */
  }

  .hero img {
    height: auto; 
    aspect-ratio: 16/10; 
  }

  .hero__content {
    position: static; 
    padding: var(--space); 
    background: none; 
  }
}
/* --- ENDE --- */


.usp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space)
}

@media (max-width: 900px) {
  .usp__grid {
    grid-template-columns: 1fr
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space)
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow); 
  min-height: 160px
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr
  }
}

.device__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space)
}

.device {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow); 
}

@media (max-width: 980px) {
  .device__grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 640px) {
  .device__grid {
    grid-template-columns: 1fr
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  counter-reset: step
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  list-style-position: inside; 
}

@media (max-width: 980px) {
  .steps {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr
  }
}

.cta-band {
  margin: 48px 0;
  padding: 28px;
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, #f0f4ff, #f4faff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center
}

.footer {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 26px var(--space);
  border-top: 1px solid var(--line);
  color: var(--muted)
}

.footer__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.accent {
  color: var(--accent); 
}


/* --- STYLES FÜR KONTAKTFORMULAR --- */

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--card);
  border: 2px solid var(--line); 
  border-radius: 10px;
  color: var(--fg);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.2); 
}

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

#contact-form .btn {
  margin-top: 10px;
  width: 100%;
  padding: .9rem 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  
  /* ★ NÖTIGE KORREKTUR: Sicherstellen, dass der "Senden"-Button nicht auch einen farbigen Rand hat */
  border: 2px solid transparent; /* Setzt den Rand zurück */
}

/* ★ NÖTIGE KORREKTUR: Dem primären Button (Senden) den transparenten Rand zuweisen */
#contact-form .btn--primary {
    border: none; /* Oder 2px solid transparent, aber 'none' ist sauberer */
}

/* ★ NÖTIGE KORREKTUR: Sicherstellen, dass der "Anfrage" Button im Menü korrekt aussieht */
.nav__menu .btn--primary {
    border: none; /* Stellt sicher, dass der primäre Button im Menü keinen Rand bekommt */
}


@media (min-width: 600px) {
    #contact-form .btn {
        width: auto;
    }
}

/* --- FEEDBACK-NACHRICHTEN --- */

.feedback {
    padding: 1rem;
    margin-bottom: var(--space);
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.feedback--success {
    background-color: rgba(0, 128, 128, 0.1); 
    border-color: var(--accent);
    color: #006442; 
}

.feedback--error {
    background-color: rgba(255, 100, 100, 0.1);
    border-color: #ff6464;
    color: #b90000; 
}