﻿/* =====================================================
   TYPO & LAYOUT – Andreas Bellof
   Haltung: ruhig · klar · beratungsnah
   Schrift: Arial (Systemfont)
   ===================================================== */


/* -------------------------
   1. Reset & Basis
   ------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* -------------------------
   2. Farbdefinitionen
   ------------------------- */

:root {
  --text-main: #111;
  --text-body: #333;
  --text-muted: #777;

  --blue: #001945;      /* Logo-Blau */
  --border-light: #e6e6e6;

  --bg-white: #ffffff;
  --bg-light: #f7f7f7;
}


/* -------------------------
   3. Layout-Grundlagen
   ------------------------- */

.container {
  width: min(1280px, 94vw);
  margin-left: auto;
  margin-right: auto;
}

.prose {
  max-width: 80ch; /* optimale Zeilenlänge für Arial = 66 */
}


/* -------------------------
   x. Topbar & Logo
   ------------------------- */	

.topbar {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: block;
}

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 1rem;
  }
}

/* -------------------------
   4. Typografische Hierarchie
   ------------------------- */

/* H1 – nur einmal pro Seite */
h1 {
  font-size: 3.2rem;          /* ca. 51px */
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin: 0 0 0.8em 0;
  max-width: 65%;
}

/* H2 – Abschnittsüberschriften */
h2 {
  font-size: 2rem;            /* 32px */
  line-height: 1.3;
  font-weight: 400;
  color: var(--text-main);
  margin-top: 6rem;
  margin-bottom: 1.5rem;
}

/* H3 – Unterpunkte */
h3 {
  font-size: 1.25rem;         /* 20px */
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}


/* -------------------------
   5. Fließtext
   ------------------------- */

p {
  margin: 0 0 1.1em 0;
  max-width: 66ch;
}

ul,
ol {
  margin: 0 0 1.1em 1.25em;
  max-width: 66ch;
}

li {
  margin: 0.35em 0;
}


/* -------------------------
   6. Hervorhebungen
   ------------------------- */

strong {
  font-weight: 600;
  color: var(--text-main);
}

.mark {
  color: var(--blue);
  font-weight: 400;
}

em {
  font-style: italic;
}


/* -------------------------
   7. Meta-Text & Hinweise
   ------------------------- */

small,
.meta {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}


/* -------------------------
   8. Links
   ------------------------- */

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* -------------------------
   9. Buttons / CTA
   ------------------------- */

.btn {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  padding: 0.9em 1.4em;
  border-radius: 6px;
  background-color: var(--blue);
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn:focus {
  outline: 3px solid rgba(31, 79, 163, 0.25);
  outline-offset: 3px;
}


/* -------------------------
   10. Sektionen & Weißraum
   ------------------------- */

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}


/* -------------------------
   11. Hero-Bereich
   ------------------------- */

.hero {
  padding: 6rem 0 4rem 0;
  max-width: 80ch;
}

.hero .subline {
  font-size: 1.6rem;          /* ca. 26px */
  line-height: 1.45;
  color: var(--text-body);
  max-width: 60ch;
  margin-bottom: 1em;
}

.hero .hint {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.8em;
}


/* -------------------------
   12. Trennelement (optional)
   ------------------------- */

.hr {
  height: 1px;
  background-color: var(--border-light);
  border: none;
  margin: 4rem 0;
}


/* -------------------------
   13. Über-mich-Bild
   ------------------------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
  flex: 0 0 300px;   /* feste Bildbreite */
  max-width: 100%;
  height: auto;
}

.about-text {
  flex: 1;
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr; /* untereinander */
    gap: 1.5rem;
  }
  
  .about-image {
    max-width: 100%;
  }
}


/* -------------------------
   xx. WARUM
   ------------------------- */

#warum {
  padding-top: 4rem; /* statt 6rem */
}

#warum p:first-of-type {
  color: #111;
}


/* -------------------------
   xx. Wie-ich-arbeite
   ------------------------- */

#wie-ich-arbeite h2 {
  margin-top: 4rem;
}


/* -------------------------
   14. Footer
   ------------------------- */

footer {
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--blue);
}


/* -------------------------
   15. Responsive Anpassungen
   ------------------------- */

@media (max-width: 768px) {

  h1 {
    font-size: 1.9rem;        /* ca. 30px */
    max-width: 100%;
  }

  h2 {
    font-size: 1.6rem;
    margin-top: 4rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .hero {
    padding: 4rem 0 3rem 0;
  }

  .hero .subline {
    font-size: 1.2rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {  /* für IPAD */
  .container {
    width: 94vw;
  }

  .prose {
    max-width: 70ch;
  }
}

/* -------------------------
   16. Große Screens – Disziplin
   ------------------------- */

@media (min-width: 1400px) {
  h1 {
    font-size: 3.4rem;
  }
}
