/* =============================
   Modern System UI – Graffiti-Free Notfallseite
   Typography first (Century Gothic / Inter)
============================= */

:root{
  /* Typography */
  --font-display: "Century Gothic", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; /* H1–H4 */
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;   /* Body + H5–H7 */

  /* Brand (Primary) */
  --primary-50:  #EAF5EE;
  --primary-100: #D5ECDB;
  --primary-200: #ACD9B6;
  --primary-300: #82C591;
  --primary-400: #59B26C;
  --primary-500: #26843D; /* Hausfarbe */
  --primary-600: #1F6F33;
  --primary-700: #185A29;
  --primary-800: #12461F;
  --primary-900: #0B3316;

  /* Neutrals */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F7F7F7;
  --neutral-100: #F0F0F0;
  --neutral-200: #E4E4E4;
  --neutral-300: #D1D1D1;
  --neutral-400: #A8A8A8;
  --neutral-500: #7A7A7A;
  --neutral-600: #5A5A5A;
  --neutral-700: #3F3F3F;
  --neutral-800: #262626;
  --neutral-900: #121212;

  /* Semantic */
  --error-500: #B91C1C;

  /* Effects */
  --focus-ring: rgba(38, 132, 61, 0.22);
  --shadow-sm:  0 10px 28px rgba(0,0,0,0.10);
  --shadow-md:  0 18px 60px rgba(0,0,0,0.14);

  /* Geometry */
  --radius-sm: 12px;
  --radius-md: 18px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 30px;
  --space-6: 40px;

  /* Layout widths */
  --container-max: 920px;
}

/* =============================
   Base
============================= */

*{ margin:0; padding:0; box-sizing:border-box; }

html{
  -webkit-text-size-adjust: 100%;
}

body{
  font-family: var(--font-text);
  color: var(--neutral-800);
  line-height: 1.65;
  background:
    radial-gradient(900px 600px at 10% 0%, rgba(38,132,61,0.10) 0%, rgba(38,132,61,0.00) 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(38,132,61,0.08) 0%, rgba(38,132,61,0.00) 60%),
    linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection{
  background: rgba(38, 132, 61, 0.16);
}

/* =============================
   Layout
============================= */

.container{
  max-width: var(--container-max);
  margin: 56px auto;
  padding: 40px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

@media (max-width: 620px){
  .container{
    margin: 18px 12px;
    padding: 24px;
    border-radius: var(--radius-sm);
    backdrop-filter: none;
  }
}

/* =============================
   Typography System
   H1–H4: Century Gothic
   Body + H5–H7: Inter
============================= */

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--primary-700);
  letter-spacing: -0.3px;
}

h5, h6{
  font-family: var(--font-text);
  color: var(--neutral-900);
}

/* Responsive type scale */
h1{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin-bottom: var(--space-3);
}

h2{
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  margin: 0 0 var(--space-2) 0;
}

h3{
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.3;
  margin: 0 0 var(--space-2) 0;
}

h4{
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 var(--space-2) 0;
}

p{
  margin-bottom: var(--space-2);
  color: var(--neutral-800);
  font-size: 15px;
}

.small,
.form-note{
  font-size: 12.5px;
  color: var(--neutral-600);
  line-height: 1.55;
}

/* =============================
   Links & Focus
============================= */

a{
  color: var(--primary-600);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover{
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =============================
   Section System
============================= */

.notice{
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.contact,
.form,
.legal{
  padding-top: var(--space-5);
  margin-top: var(--space-5);
  border-top: none;
}

/* =============================
   Phone / Direct Contact
============================= */

.phone{
  margin-bottom: var(--space-2);
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(38,132,61,0.06) 0%, rgba(255,255,255,0.00) 100%);
}

.phone a{
  font-weight: 750;
  font-size: 16px;
  color: var(--primary-700);
}

/* =============================
   Form
============================= */

.contact-form{
  margin-top: var(--space-3);
}

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 780px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
}

.field label{
  display: block;
  font-size: 13px;
  font-weight: 550; /* weniger bold */
  color: var(--neutral-700);
  margin-top: 8px;
  margin-bottom: 8px;
}

.field input,
.field textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14.5px;
  background: rgba(255,255,255,0.95);
  color: var(--neutral-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.06s ease;
}

.field textarea{
  resize: vertical;
  min-height: 132px;
}

.field input:hover,
.field textarea:hover{
  border-color: rgba(38,132,61,0.35);
}

.field input:focus,
.field textarea:focus{
  border-color: var(--primary-500);
  box-shadow: 0 0 0 5px rgba(38, 132, 61, 0.12);
}

/* Pflichtstern ruhiger */
.req{
  color: var(--error-500);
  font-weight: 700;
  font-size: 12px;
  margin-left: 2px;
}

/* Consent */
.consent{
  margin-top: 14px;
}

.checkbox{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
  font-size: 13px;
  line-height: 1.55;
  color: var(--neutral-700);
}

.checkbox input{
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-500);
}

.checkbox:focus-within{
  border-color: rgba(38,132,61,0.45);
  box-shadow: 0 0 0 5px rgba(38, 132, 61, 0.10);
}

/* Button */
.btn{
  margin-top: 22px; /* mehr Abstand zur Checkbox */
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 750;
  cursor: pointer;
  background: linear-gradient(180deg, var(--primary-500) 0%, var(--primary-700) 100%);
  color: #fff;
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover{
  filter: brightness(1.02);
  box-shadow: var(--shadow-sm);
}

.btn:active{
  transform: translateY(1px);
}

/* Note unter Button: Abstand + Trennung */
.form-note{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* Honeypot */
.hp-field{
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================
   Details / Impressum
============================= */

.imprint-details{
  margin-top: 6px;
}

.imprint-details summary{
  list-style: none;
  cursor: pointer;
  font-family: var(--font-text); /* H5–H7 Stil: Inter */
  font-weight: 650;
  font-size: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
  color: var(--neutral-800);
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.06s ease;
}

.imprint-details summary::-webkit-details-marker{
  display: none;
}

.imprint-details summary::after{
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-700);
  font-size: 18px;
}

.imprint-details[open] summary::after{
  content: "–";
}

.imprint-details summary:hover{
  border-color: rgba(38,132,61,0.35);
  background: rgba(38,132,61,0.06);
}

.imprint-content{
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--neutral-700);
  font-size: 14px;
}

.imprint-content p{
  color: var(--neutral-700);
  margin-bottom: 10px;
}

.imprint-content p:last-child{
  margin-bottom: 0;
}

.status-badge{
  display:inline-block;
  font-family: var(--font-text);
  font-size:12px;
  font-weight:600;
  padding:6px 12px;
  border-radius:999px;
  background: var(--primary-50);
  color: var(--primary-700);
  margin-bottom: 14px;
  letter-spacing:0.2px;
}

.phone{
  margin-top: 12px;
}

.phone a{
  display:block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  padding: 18px 20px;
  border-radius: 18px;
  text-align:center;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
  color:#fff;
  text-decoration:none;
  transition: transform .06s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}

.phone a:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =============================
   Modal (Popup Feedback)
============================= */

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open{
  display: block;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(18,18,18,0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog{
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 10vh auto 0 auto;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.modal__title{
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.modal__close{
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal__body{
  padding: 16px 18px;
  color: var(--neutral-800);
  font-size: 15px;
  line-height: 1.6;
}

.modal__footer{
  padding: 14px 18px 18px 18px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

/* Secondary button style */
.btn.btn--secondary{
  background: rgba(0,0,0,0.04);
  color: var(--neutral-900);
  border: 1px solid rgba(0,0,0,0.12);
}

.btn.btn--secondary:hover{
  filter: none;
}
/* -------------------------
   Brand Zone
--------------------------*/

.brand-header{
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  margin-bottom: 72px;
  flex-wrap: wrap;        /* Mobile: Badge rutscht sauber um */
}

.brand__logo{
  display: block;
  height: 34px;
  width: auto;
  max-width: 240px;
}

/* Badge: kein “floating”, sauber in der Zeile */
.status-badge{
  margin: 0;              /* wichtig: alte margins killen */
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}