:root {
  --bg: #0b0c10;
  --panel: rgba(12, 13, 18, 0.72);
  --panel2: rgba(15, 16, 22, 0.82);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);

  --red: #ff3b30;
  --orange: #ff7a18;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255, 59, 48, 0.18), transparent 60%),
    radial-gradient(800px 500px at 80% 20%, rgba(255, 122, 24, 0.14), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(255, 122, 24, 0.08), transparent 65%),
    linear-gradient(180deg, #0a0b10 0%, #06070b 100%);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
}

.hero {
  width: 100%;
  position: relative;
}

.hero-logo {
  width: 100%;
  height: auto;
  display: block;
  /* leichtes “pop” */
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.content {
  width: min(980px, calc(100% - 26px));
  margin: 0 auto;
  padding: 18px 0 34px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.intro h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.intro p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.intro strong {
  color: rgba(255, 255, 255, 0.95);
}

.cta-line {
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.18), rgba(255, 122, 24, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}

.btn.primary {
  border-color: rgba(255, 122, 24, 0.35);
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.26), rgba(255, 122, 24, 0.22));
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn.small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
}

.projects {
  padding: 16px;
}

.projects-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.projects-head p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.project-grid {
  display: grid;
  gap: 12px;
}

.project-tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, rgba(255, 59, 48, 0.22), rgba(255, 122, 24, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 20px;
}

.project-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.project-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Footer transparent, über ganze Breite */
.footer {
  width: 100%;
  margin-top: 16px;
  padding: 18px 0 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.footer-inner {
  width: min(980px, calc(100% - 26px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

@media (min-width: 760px) {
  .content {
    gap: 18px;
    padding: 22px 0 40px;
  }

  .card {
    padding: 18px;
  }

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

.footer-right a,
.footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-right a:hover,
.footer-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.35);
}


/* ===============================
   DESKTOP LAYOUT OPTIMIERUNG
=================================*/

@media (min-width: 1100px) {

  body {
    background:
      radial-gradient(1200px 700px at 50% -10%, rgba(255, 59, 48, 0.15), transparent 70%),
      radial-gradient(900px 600px at 0% 50%, rgba(255, 122, 24, 0.12), transparent 60%),
      radial-gradient(900px 600px at 100% 50%, rgba(255, 59, 48, 0.12), transparent 60%),
      linear-gradient(180deg, #0a0b10 0%, #06070b 100%);
  }

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

  .hero-logo {
    width: min(750px, 100%);
    border-radius: 22px;
    margin-top: 24px;
  }

  .content {
    width: min(750px, 100%);
  }

  .card {
    padding: 22px;
  }

  .footer-inner {
    width: min(750px, 100%);
  }

}

/* ===============================
   DESKTOP SIDE FADES 
=================================*/

@media (min-width: 1100px) {

  /* Content über die Fades legen */
  .page {
    position: relative;
    z-index: 2;
  }

  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 22%;
    pointer-events: none;

    /* ✅ sichtbar über Background */
    z-index: 1;
  }

  body::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 0, 0, 0.35), transparent);
  }

  body::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 140, 255, 0.30), transparent);
  }
}

/* ===============================
   KONTAKT MODAL + FORM
=================================*/

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(560px, calc(100% - 26px));
  margin: 10vh auto;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  padding: 18px;
}

.modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}


.modal-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.modal-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal-close{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);

  border-radius: 12px;
  width: 38px;
  height: 38px;

  font-weight: 900;
  cursor: pointer;
}


/* Nachrichtbox */
.contact-msg {
  margin: 0 0 14px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

/* Formular */
.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);

  
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.85);

  outline: none;
  font-family: inherit;
}

/* ✅ iOS: kein Auto-Zoom beim Fokus */
.field input,
.field textarea {
  font-size: 16px;
}

/* Placeholder Style */
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 122, 24, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.12);
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ===============================
   PROJECT PAGE HELPERS
=================================*/

.status-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.18), rgba(0, 140, 255, 0.14));
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 13px;
}

.sec-title {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.sec-sub {
  margin: 14px 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.sec-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.img-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 12px auto 0 auto;
  justify-content: center;
}

.fire {
  filter: drop-shadow(0 10px 22px rgba(255, 59, 48, 0.35));
}

@media (min-width: 760px) {
  .img-row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}


/* ===============================
   FEUERWEHR PROJEKT – ALLE BILDER GLEICH GROSS
=================================*/

.page-fw .photo {
  width: 300px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-fw .img-row {
  width: 300px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  /* <— DAS zentriert die 2er Bilder in der Reihe */
}