/* ============================================================
   Rebellion Webdesign — styles.css
   Von Hand gebaut. Kein Baukasten, kein Framework.
   ============================================================ */

/* ---------- Theme-Tokens ---------- */
:root {
  --accent: #FF4433;

  /* Surface 1 — helle Flächen (Hell-Modus) */
  --s1-bg: #F2F0EF;
  --s1-fg: #0E0E0E;
  --s1-muted: rgba(14, 14, 14, .62);
  --s1-line: rgba(14, 14, 14, .12);

  /* Surface 2 — dunkle Flächen (Hell-Modus) */
  --s2-bg: #0E0E0E;
  --s2-fg: #F2F0EF;
  --s2-muted: rgba(242, 240, 239, .72);
  --s2-line: rgba(242, 240, 239, .16);
}

[data-theme="dark"] {
  --s1-bg: #0E0E0E;
  --s1-fg: #F2F0EF;
  --s1-muted: rgba(242, 240, 239, .66);
  --s1-line: rgba(242, 240, 239, .14);
  --s2-bg: #1C1C1C;
  --s2-bg-60: rgba(0, 0, 0, 0.05);
  --s2-fg: #F2F0EF;
  --s2-muted: rgba(242, 240, 239, .62);
  --s2-line: rgba(242, 240, 239, .12);
}

/* ---------- Reset & Basis ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--s1-bg);
  color: var(--s1-fg);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.nav-links a:not(.nav-cta):hover,
.footer-links a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #F2F0EF;
}

@keyframes rbFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.l-container {
  max-width: 1180px;
  margin: 0 auto;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Theme-Toggle ---------- */
.switch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 78px;
  height: 40px;
  border: none;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: #FFFFFF;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
  transition: background .25s;
}

[data-theme="dark"] .switch {
  background: var(--accent);
}

.switch-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  line-height: 0;
  transition: opacity .2s;
}

.switch-icon-sun-track {
  left: 12px;
  color: rgba(255, 255, 255, .6);
  opacity: 0;
}

.switch-icon-moon-track {
  right: 12px;
  color: rgba(14, 14, 14, .4);
  opacity: 1;
}

[data-theme="dark"] .switch-icon-sun-track {
  opacity: 1;
}

[data-theme="dark"] .switch-icon-moon-track {
  opacity: 0;
}

.switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0);
  transition: transform .28s cubic-bezier(.4, .15, .2, 1), background .25s;
}

[data-theme="dark"] .switch-knob {
  background: #1C1C1C;
  transform: translateX(38px);
}

.switch-knob .switch-icon {
  position: absolute;
  top: auto;
  transform: none;
}

.switch-icon-sun {
  opacity: 1;
}

.switch-icon-moon {
  opacity: 0;
}

[data-theme="dark"] .switch-icon-sun {
  opacity: 0;
}

[data-theme="dark"] .switch-icon-moon {
  opacity: 1;
}

/* ---------- Shared ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}

#heart {
  width: 12px;
  height: auto;
}

.section-title {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0;
}

/* ---------- Hero ---------- */
.l-hero {
  background: var(--s2-bg);
  color: var(--s2-fg);
  position: relative;
  margin-top: -80px;
}

.l-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 7vw;
  background: var(--s2-bg-60);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--s2-fg);
}

.brand-name {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.brand-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .04em;
}

.nav-links a {
  color: var(--s2-fg);
}

.nav-cta {
  display: inline-block;
  padding: 9px 16px;
  background: var(--accent);
  color: #F2F0EF;
  font-weight: 500;
}

.nav-cta:hover {
  color: #F2F0EF;
  opacity: 1;
  filter: brightness(1.12);
}

.l-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 7vw 130px;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
  animation: rbFade .5s both;
}

.hero-title {
  font-size: clamp(44px, 8.2vw, 108px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 700;
  margin: 0;
  max-width: 15ch;
  animation: rbFade .6s .05s both;
}

.hero-title .mark {
  display: inline-block;
  background: var(--accent);
  color: #F2F0EF;
  padding: 0 .12em;
  transform: rotate(-1.2deg);
}

.hero-lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  max-width: 56ch;
  margin: 38px 0 0;
  color: var(--s2-muted);
  animation: rbFade .6s .12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  animation: rbFade .6s .18s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--accent);
  color: #F2F0EF;
  font-weight: 600;
  font-size: 16px;
}

.btn-primary:hover {
  color: #F2F0EF;
  opacity: 1;
  filter: brightness(1.12);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 16px 26px;
  border: 1.5px solid var(--s2-fg);
  color: var(--s2-fg);
  font-weight: 600;
  font-size: 16px;
}

.btn-outline:hover {
  background: var(--s2-fg);
  color: var(--s2-bg);
  opacity: 1;
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--s2-line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--s2-muted);
  animation: rbFade .6s .24s both;
}


/* ---------- Divider ---------- */
.divider {
  background: var(--s2-bg);
  line-height: 0;
  font-size: 0;
}

.divider img {
  display: block;
  width: 100%;
  object-fit: fill;
}

a,
.toggle,
.nav-cta,
.btn-primary,
.btn-outline,
.btn-light,
.service {
  transition: color .2s ease, background-color .2s ease, opacity .2s ease, filter .2s ease, border-color .2s ease;
}

.privacy {
    color: var(--s1-fg);
}

.checkbox-group-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* ---------- Über mich ---------- */
.l-about {
  background: var(--s2-bg);
  color: var(--s2-fg);
  padding: 120px 7vw;
}

.l-about-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 64px;
  align-items: start;
}

.about-text {
  font-size: 19px;
  line-height: 1.65;
  color: var(--s2-muted);
  margin: 30px 0 0;
  max-width: 52ch;
}

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

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 34px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--s2-muted);
}

.photo {
  aspect-ratio: 4 / 5;
  border: 1px dashed var(--s2-line);
  background: repeating-linear-gradient(135deg, rgba(242, 240, 239, .05) 0 2px, transparent 2px 13px);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.photo-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--s2-muted);
}

/* ---------- Werte ---------- */
.l-values {
  background: var(--s1-bg);
  color: var(--s1-fg);
  padding: 120px 7vw;
}

.values-title {
  margin-bottom: 60px;
  max-width: 18ch;
}

.l-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--s1-fg);
}

.value {
  padding: 36px 30px 40px;
  border-right: 1px solid var(--s1-line);
}

.value:first-child {
  padding-left: 0;
}

.value:last-child {
  padding-right: 0;
  border-right: none;
}

.value-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--accent);
}

.value-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 14px 0 12px;
}

.value-text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--s1-muted);
  margin: 0;
}

/* ---------- Leistungen ---------- */
.l-services {
  background: var(--s2-bg);
  color: var(--s2-fg);
  padding: 120px 7vw;
}

.services-title {
  margin-bottom: 60px;
  max-width: 16ch;
}

.l-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  border: 1px solid var(--s2-line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}

.service:hover {
  border-color: var(--accent);
}

.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
}

.service-title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 16px 0 12px;
}

.service-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--s2-muted);
  margin: 0 0 24px;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}

.tag {
  padding: 5px 10px;
  border: 1px solid var(--s2-line);
}

/* ---------- Kontakt ---------- */
.l-contact {
  background: var(--accent);
  color: #F2F0EF;
  padding: 120px 7vw;
}

.l-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 240, 239, .72);
  margin: 0 0 22px;
}

.contact-title {
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0;
  max-width: 16ch;
}

.contact-lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(242, 240, 239, .85);
  margin: 28px 0 0;
  max-width: 44ch;
}

.contact-list {
  display: flex;
  flex-direction: column;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(242, 240, 239, .28);
}

.contact-row:last-child {
  border-bottom: 1px solid rgba(242, 240, 239, .28);
}

.contact-key {
  color: rgba(242, 240, 239, .7);
}

/* Formular */

.l-contact-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(242, 240, 239, .8);
}

.field-input {
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid rgba(242, 240, 239, .4);
  background: transparent;
  color: #F2F0EF;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  outline: none;
}

.field-input:focus {
  border-bottom-color: #F2F0EF;
}

.field-input::placeholder {
  color: rgba(255, 255, 255, .6);
  opacity: 1;
}

.field-textarea {
  line-height: 1.5;
  resize: vertical;
}

/* Absende-Button */
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 16px 26px;
  border: none;
  background: #F2F0EF;
  color: #0E0E0E;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.btn-light:hover {
  background: #0E0E0E;
  color: #F2F0EF;
}

.l-contact-grid {
  transition: grid-template-columns .45s cubic-bezier(.4, 0, .2, 1),
              min-height .4s ease;
}

.contact-success-card.is-centered {
  transform: translateX(var(--center-offset, 0px));
}

.contact-intro {
  overflow: hidden;
  transition: opacity .4s ease, transform .4s ease;
}

.contact-intro.is-hidden {
  opacity: 0;
  transform: translateX(-40px);
  pointer-events: none;
}

/* Karte behält ihre Größe, wird aber im vollen Grid-Bereich zentriert */
.contact-success-card {
  justify-self: center;
  align-self: center;
}

/* ---------- Footer ---------- */
.l-footer {
  background: var(--s2-bg);
  color: var(--s2-fg);
  padding: 44px 7vw;
  border-top: 1px solid var(--s2-line);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--s2-muted);
}

.footer-links a {
  color: var(--s2-muted);
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--s2-muted);
}

/* ============================================================
   Rechts-Seiten (Impressum / Datenschutz / AGB)
   ============================================================ */
.l-legal {
  background: var(--s1-bg);
  color: var(--s1-fg);
  min-height: 100vh;
}

.l-legal-head {
  background: var(--s2-bg);
  color: var(--s2-fg);
  padding: 70px 7vw 64px;
  border-bottom: 1px solid var(--s2-line);
}

.l-legal-head .l-container {
  max-width: 820px;
}

.legal-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.legal-title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0;
  max-width: 18ch;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--s2-fg);
}

.legal-back:hover {
  color: var(--accent);
}

.legal-updated {
  margin-top: 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--s2-muted);
}

.l-legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 7vw 120px;
}

.legal-note {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 0 0 56px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--s1-muted);
}

.legal-block {
  margin: 0 0 48px;
}

.legal-block-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
}

.legal-block h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 10px 0 18px;
}

.legal-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.legal-block p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--s1-muted);
  margin: 0 0 16px;
}

.legal-block p strong {
  color: var(--s1-fg);
}

.legal-block ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-block li {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--s1-muted);
  margin: 0 0 8px;
}

.legal-address {
  font-style: normal;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--s1-fg);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .l-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .l-values-grid {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .value,
  .value:first-child,
  .value:last-child {
    padding: 30px 0;
    border-right: none;
    border-top: 1px solid var(--s1-line);
  }

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

  .l-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  .l-contact-row2 {
    grid-template-columns: 1fr;
  }
}

.checkbox-group a {
  color: var(--s2-bg);
  text-decoration: underline;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  margin-left: -6px;
}

.checkbox-group label {
    margin-left:5px ;
}

/* Styling für die sanfte Transition */
.contact-form, .contact-success-card {
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

/* 1. Schritt: Formular blendet beim Absenden aus (Fade-Out + leichtes Absinken) */
.contact-form.htmx-swapping {
  opacity: 0;
  transform: translateY(10px);
}

/* 2. Schritt: Danksagung startet unsichtbar... */
.contact-success-card.htmx-settling {
  opacity: 0;
  transform: translateY(-10px);
}
