/*
 * BohlmannIT – Hauptstylesheet
 * bohlmannit.de
 *
 * Google Fonts – Inter (lokal gehostet, kein Google-Kontakt)
 * Font-Dateien liegen unter: ../assets/fonts/
 */
/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../assets/fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../assets/fonts/inter-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../assets/fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../assets/fonts/inter-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* =========================================
   CSS-Variablen
   ========================================= */
:root {
  --clr-primary:       #1a2e4a;
  --clr-primary-hover: #243f65;
  --clr-accent:        #2563eb;
  --clr-bg:            #ffffff;
  --clr-bg-alt:        #f5f7fa;
  --clr-text:          #1e293b;
  --clr-muted:         #64748b;
  --clr-border:        #e2e8f0;

  --font:              'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:             68px;
  --radius:            8px;
  --radius-lg:         12px;
  --shadow-sm:         0 1px 3px rgba(0,0,0,.08);
  --shadow-md:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:         0 8px 32px rgba(0,0,0,.13);
  --max-w:             1100px;
  --sec-pad:           5rem 1.5rem;
  --trans:             0.2s ease;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* verhindert horizontales Scrollen durch dekorative Elemente */
}

img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }
a    { color: var(--clr-primary); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--clr-accent); }

/* =========================================
   Layout-Helfer
   ========================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section         { padding: var(--sec-pad); }
.section--alt    { background: var(--clr-bg-alt); }

.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(37,99,235,.08);
  padding: .28rem .75rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.2;
  margin-bottom: .85rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 580px;
  margin-bottom: 2.75rem;
  line-height: 1.7;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--trans);
}

.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.02em;
  text-decoration: none;
}

.nav__logo span { color: var(--clr-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-text);
}

.nav__links a:hover { color: var(--clr-primary); }

.nav__links .nav-cta {
  padding: .48rem 1.2rem;
  background: var(--clr-primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav__links .nav-cta:hover {
  background: var(--clr-primary-hover);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: calc(88vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, #eef2f8 0%, #f8fafc 50%, #ffffff 100%);
  padding: 4.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Decorative background circle */
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: min(600px, 55vw);
  height: min(600px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(37,99,235,.09);
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.1;
  margin-bottom: 1.1rem;
  max-width: 700px;
}

.hero__subline {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--clr-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(26,46,74,.28);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}

.hero__cta:hover {
  background: var(--clr-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,46,74,.32);
}

.hero__cta svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================
   ÜBER MICH
   ========================================= */
.about { padding: var(--sec-pad); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}

.about__text p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--clr-text);
  margin-bottom: 1.1rem;
}

.about__text p:last-child { margin-bottom: 0; }

.about__img-wrap {
  position: relative;
}

.about__img-wrap::before {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 2px solid var(--clr-border);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: 0;
}

/* Foto */
.about__portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--clr-bg-alt);
  /* Zeigt grauen Bereich, wenn kein Foto vorhanden */
  min-height: 200px;
}

/* =========================================
   LEISTUNGEN
   ========================================= */
.services { padding: var(--sec-pad); }

.services__header {
  max-width: var(--max-w);
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-3px);
}

.card__icon {
  width: 50px;
  height: 50px;
  background: rgba(26,46,74,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--clr-primary);
  stroke: currentColor;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: .6rem;
  line-height: 1.3;
}

.card__text {
  font-size: .95rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* =========================================
   KONTAKT
   ========================================= */
.contact { padding: var(--sec-pad); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

.contact__intro {
  font-size: 1.05rem;
  color: var(--clr-text);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
}

.contact__item svg {
  width: 20px;
  height: 20px;
  color: var(--clr-primary);
  flex-shrink: 0;
  stroke: currentColor;
}

.contact__item a {
  color: var(--clr-text);
  font-weight: 500;
  overflow-wrap: break-word;
  word-break: break-all; /* verhindert Überlauf langer E-Mail-Adressen */
}

.contact__item a:hover { color: var(--clr-accent); }

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.btn-social:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

.btn-social svg { width: 16px; height: 16px; }

/* Kontaktformular */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.form__label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text);
}

.form__input,
.form__textarea {
  font-family: var(--font);
  font-size: .95rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .72rem .95rem;
  width: 100%;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(26,46,74,.1);
}

.form__textarea {
  resize: vertical;
  min-height: 145px;
  line-height: 1.6;
}

.form__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 2rem;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,46,74,.22);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}

.form__btn:hover {
  background: var(--clr-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(26,46,74,.28);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--clr-primary);
  padding: 1.75rem 1.5rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer__copy { font-size: .88rem; color: rgba(255,255,255,.65); }

.footer__links { display: flex; gap: 1.5rem; }

.footer__links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}

.footer__links a:hover { color: #fff; }

/* =========================================
   IMPRESSUM-SEITE
   ========================================= */
.legal {
  min-height: calc(100vh - var(--nav-h));
  padding: 4rem 1.5rem 5rem;
}

.legal__container {
  max-width: 780px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: .5rem;
}

.legal .lead {
  font-size: 1.05rem;
  color: var(--clr-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--clr-border);
}

.legal-block { margin-bottom: 3rem; }

.legal-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--clr-bg-alt);
}

.legal-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-top: 1.4rem;
  margin-bottom: .45rem;
}

.legal-block p {
  font-size: .95rem;
  color: var(--clr-text);
  line-height: 1.8;
  margin-bottom: .75rem;
}

.legal-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: .75rem;
}

.legal-block ul li {
  font-size: .95rem;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: .25rem;
}

.legal-block a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-block a:hover { color: var(--clr-primary); }

.legal-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 2.5rem 0;
}

.legal-section-heading {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 2rem;
}

.legal-source {
  font-size: .8rem;
  color: var(--clr-muted);
  margin-top: 2rem;
}

/* =========================================
   RESPONSIVE – Tablet ≤ 900px
   ========================================= */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__img-wrap {
    max-width: 260px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* =========================================
   RESPONSIVE – Mobile ≤ 640px
   ========================================= */
@media (max-width: 640px) {
  :root { --sec-pad: 3.5rem 1.25rem; }

  /* Mobile Nav */
  .nav__hamburger { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
    padding: .5rem 1.5rem 1rem;
    gap: 0;
  }

  .nav__links.open { display: flex; }

  .nav__links a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 1rem;
    color: var(--clr-text);
  }

  .nav__links a:last-child {
    border-bottom: none;
  }

  .nav__links .nav-cta {
    background: none;
    color: var(--clr-primary) !important;
    border-radius: 0;
    padding: .9rem 0;
    text-align: left;
    font-weight: 600;
  }

  /* Hero */
  .hero { min-height: 80vh; padding: 3rem 1.25rem; }
  .hero::after { display: none; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact__social { flex-direction: column; }
  .btn-social { align-self: flex-start; }

  /* Formular: Button volle Breite, iOS-Zoom-Fix für Inputs */
  .form__btn { align-self: stretch; justify-content: center; }
  .form__input,
  .form__textarea { font-size: 16px; } /* iOS zoomt bei < 16px automatisch rein */

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }

  /* About image: mittig ausrichten, dekorativen Rahmen anpassen */
  .about__img-wrap {
    max-width: 200px;
    margin: 0 auto; /* zentriert das Foto auf Mobile */
  }

  .about__img-wrap::before {
    inset: 8px -6px -6px 6px; /* kleinere negative Offsets, kein horizontaler Überlauf */
  }
}
