/* Immobosse — Hausverwaltung Osnabrück
   Reines CSS, mobile-first. */

/* Fonts: Sora 400 + 600 (latin + latin-ext) — lokal */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #4565AB;
  --blue-10: rgba(69, 101, 171, 0.10);
  --orange: #ea6e19;
  --ink: #222221;
  --ink-soft: #4a4a48;
  --muted: #767672;
  --white: #ffffff;
  --line: #e5e7ed;

  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 24px rgba(34, 34, 33, 0.08);
  --shadow-card-strong: 0 10px 30px rgba(34, 34, 33, 0.12);
  --shadow-header: 0 4px 14px rgba(34, 34, 33, 0.06);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --header-h: 88px;

  --fs-h1: clamp(2rem, 5.2vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 4vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 2.2vw, 1.35rem);
  --fs-body: clamp(1rem, 1.2vw, 1.0625rem);
  --fs-eyebrow: 0.9rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -0.005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--blue { background: var(--blue); color: var(--ink); }
.section--blue-10 { background: var(--blue-10); }
.section--white { background: var(--white); }

.section__eyebrow {
  display: block;
  text-align: center;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 12px;
}
.section--blue .section__eyebrow { color: var(--white); }
.section__title { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo { display: block; }
.site-header__logo img { height: clamp(48px, 7vw, 64px); width: auto; }

.site-nav { display: none; }
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--orange); }

/* Mobile nav toggle — reines Hamburger-Icon (3 Striche) */
.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: 0;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: color .15s ease, background-color .15s ease;
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle[aria-expanded="true"] { color: var(--orange); background: rgba(234, 110, 25, .08); }
.nav-toggle:hover { color: var(--orange); }

@media (min-width: 760px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul {
  list-style: none;
  margin: 0; padding: 8px var(--gutter) 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.is-active { color: var(--orange); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(234, 110, 25, .28);
}
.btn--orange:hover { background: #d05f12; color: var(--white); }
.btn--blue {
  background: var(--blue);
  color: var(--white);
}
.btn--blue:hover { background: #38538f; color: var(--white); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: clamp(420px, 64vh, 640px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0.35) 100%
  );
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 10vw, 120px) 0;
  max-width: 760px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: .4em;
  font-size: clamp(1.4rem, 7vw, 3.6rem);
  text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.35);
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 540px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* Generic sub-page hero band */
.page-hero {
  background: var(--blue-10);
  padding: clamp(60px, 9vw, 110px) 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: .6em; }
.page-hero p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Sub-page image hero (kontakt) */
.image-hero {
  position: relative;
  min-height: clamp(360px, 56vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a28;
  color: var(--white);
  overflow: hidden;
}
.image-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.image-hero__media picture { display: block; width: 100%; height: 100%; }
.image-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.image-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.image-hero h1 {
  position: relative;
  color: var(--white);
  z-index: 2;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.35);
}

/* --- Karten / Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}
.card--tinted {
  background: var(--blue-10);
  box-shadow: none;
}
.card--bordered {
  background: var(--white);
  box-shadow: none;
  border: 1px solid var(--line);
}

/* --- Konzept-Karten Grid (3-up) --- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 760px) {
  .concept-grid { grid-template-columns: repeat(3, 1fr); }
}
.concept-card {
  text-align: center;
  align-items: center;
}
.concept-card__icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--orange);
}
.concept-card__icon svg { width: 100%; height: 100%; }
.concept-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 18px;
  font-size: 1.25rem;
}
.concept-card p { margin: 0; }

/* --- Pakete-Karten Grid (2-up) --- */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 940px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
}
.package-card__title {
  color: var(--orange);
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  margin: 0 0 6px;
}
.package-card__price {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 600;
  margin: 0;
}
.package-card__price small {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.package-card__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.package-card__list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  line-height: 1.5;
}
.package-card__list li::before {
  content: "";
  width: 22px; height: 22px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222221' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><path d='M8 12.5 11 15.5 16.5 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.package-card--blue .package-card__list li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234565AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><path d='M8 12.5 11 15.5 16.5 9'/></svg>");
}
.package-card__footnote {
  margin: auto 0 0;
  padding-top: 8px;
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.98rem;
}

/* --- Team-Sektion --- */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 880px) {
  .team { grid-template-columns: 1fr 1fr; }
}
.team__eyebrow { color: var(--blue); font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: 0.04em; }
.team__sub { color: var(--blue); font-weight: 600; font-size: 1.15rem; margin: 0 0 18px; }
.team__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-soft);
}
.team__social a {
  display: inline-flex;
  color: var(--blue);
  border-radius: 8px;
  transition: color .15s ease, transform .15s ease;
}
.team__social a:hover { color: var(--orange); transform: translateY(-2px); }
.team__social svg { width: 28px; height: 28px; }
.team__photo-wrap {
  background: var(--blue);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.5vw, 28px);
}
.team__photo-wrap img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* --- Kontakt-Karten --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  text-align: center;
  align-items: center;
}
.contact-card__icon {
  width: 44px; height: 44px;
  color: var(--orange);
  margin-bottom: 14px;
}
.contact-card__icon svg { width: 100%; height: 100%; }
.contact-card h3 { margin: 0 0 14px; font-size: 1.25rem; }
.contact-card a { font-weight: 400; }
.contact-card a:hover { color: var(--orange); }
.contact-card__address { margin: 0; line-height: 1.6; }
.contact-card__address a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Technik-Seite: Bild + Liste Splits --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split__media {
  background: #d8d8d6;
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a86;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}
.split__media picture { display: block; width: 100%; height: 100%; }
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.split__list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.split__list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  line-height: 1.5;
}
.split__list li::before {
  content: "";
  width: 22px; height: 22px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234565AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><path d='M8 12.5 11 15.5 16.5 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.split__note {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

/* --- Formular --- */
.form-panel {
  background: var(--blue-10);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  max-width: 760px;
  margin: 0 auto;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.contact-form .row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .contact-form .row-2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; }
.field label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  padding: 10px 2px;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--orange);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23222221' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 7l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 18px;
  padding-right: 30px;
  cursor: pointer;
}
.field select option {
  color: var(--orange);
  background: var(--white);
  font-weight: 600;
}
.field select option[value=""] {
  color: var(--ink);
  font-weight: 400;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.form-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.form-note a { text-decoration: underline; }
.form-actions { display: flex; justify-content: flex-start; }

/* --- Floating Phone Button --- */
.floating-phone {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 64px; height: 64px;
  background: var(--blue);
  color: var(--white);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 34, 33, .22);
  z-index: 40;
  transition: transform .15s ease, background-color .15s ease;
}
.floating-phone:hover { background: #38538f; color: var(--white); transform: translateY(-2px); }
.floating-phone svg { width: 28px; height: 28px; }

/* --- Footer --- */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 36px 0;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr auto; }
}
.site-footer__legal { display: flex; flex-direction: column; gap: 6px; }
.site-footer__links { display: flex; gap: 22px; }
.site-footer__powered {
  display: flex; align-items: center; gap: 14px;
  justify-content: flex-start;
}
@media (min-width: 760px) {
  .site-footer__powered { justify-content: flex-end; }
}
.site-footer__powered span { font-size: .95rem; }
.site-footer__powered img { height: 38px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 6px; }

/* --- Static text pages (Impressum, Datenschutz) --- */
.text-page { padding: clamp(56px, 7vw, 90px) 0 clamp(64px, 9vw, 120px); }
.text-page h1 { margin-bottom: 1em; }
.text-page h2 { margin-top: 1.8em; margin-bottom: .6em; font-size: 1.3rem; }
.text-page p { margin: 0 0 .55em; }
.text-page .impressum-block { margin-bottom: 1.6em; }

/* --- Form status messages --- */
/* Sichtbar, sobald contact.js Text hineinschreibt — vorher leer und damit
   ausgeblendet. Frueher stand hier display:none plus display:block nur fuer
   .is-error; damit war die Erfolgsmeldung des Formulars nie zu sehen. */
.form-status { display: block; font-weight: 600; color: #4565AB; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b03a1a; }

/* Honeypot: fuer Menschen unsichtbar, fuer Bots ein ausfuellbares Feld.
   Kein display:none — manche Bots ueberspringen genau das. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
