/* blauthpictures – gemeinsames Stylesheet für alle Seiten */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/lato-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/crimson-text-latin-400-italic.woff2") format("woff2");
}

:root {
  --frame: #e9e9e9;      /* äußerer grauer Rahmen */
  --white: #ffffff;
  --text: #6e6d6d;
  --nav: #393939;
  --accent: #2c7699;     /* aktiver Menüpunkt, Links */
  --footer-text: #686868;
  --panel: rgba(255, 255, 255, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #f8f8f8;
  color: var(--text);
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Hintergrundbild (fest) ---------- */
.hero {
  position: fixed;
  inset: 0;
  background: url("../img/hintergrund.jpg") center / cover no-repeat;
  z-index: 0;
}

/* ---------- Rahmen: 20px grau außen, 60px weiß innen ---------- */
.frame {
  position: fixed;
  inset: 0;
  border: 20px solid var(--frame);
  pointer-events: none;
  z-index: 30;
}
.strip { position: fixed; background: var(--white); z-index: 20; }
.strip--left  { top: 20px; bottom: 20px; left: 20px;  width: 60px; }
.strip--right { top: 20px; bottom: 20px; right: 20px; width: 60px; }

/* ---------- Kopfzeile ---------- */
.header {
  position: fixed;
  top: 20px; left: 20px; right: 20px;
  height: 60px;
  background: var(--white);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}
.logo { display: block; width: 224px; height: 40px; }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }

.mainmenu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.mainmenu a {
  display: block;
  padding: 0 15px;
  line-height: 60px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--nav);
  transition: color .3s;
}
.mainmenu a:hover,
.mainmenu a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 0; background: none; padding: 6px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 24px; height: 2px;
  background: var(--nav); position: relative; content: "";
  transition: transform .3s, background .3s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }

/* ---------- Inhalt (rechte Hälfte, weiß-transparent) ---------- */
.main {
  position: relative;
  z-index: 10;
  margin-left: 50%;
  min-height: 100vh;
  background: var(--panel);
  padding: 140px 80px 160px 56px;
}
.content { max-width: 600px; }

.headline { margin-bottom: 25px; }
.headline::after {
  content: "";
  display: block;
  width: 100px; height: 1px;
  margin: 20px 0;
  background: var(--text);
}
h1 {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: break-word;
}

/* Startseite: große kursive Serifenschrift */
.leadertext p {
  margin: 0 0 15px;
  font-family: "Crimson Text", serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
}
.content p a { border-bottom: 1px solid currentColor; }
.content p a:hover,
.content li a:hover { color: var(--accent); }

/* Impressum / Datenschutz: gut lesbarer Fließtext */
.legal { font-size: 15px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: #555; font-weight: 700; }
.legal .lead {
  font-family: "Crimson Text", serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
}
.legal a { overflow-wrap: anywhere; }

/* ---------- Fußzeile ---------- */
.footer {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  height: 60px;
  background: var(--white);
  z-index: 25;
  display: flex;
  align-items: center;
  padding: 0 60px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--footer-text);
}
.footer a:hover { color: var(--accent); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .main { margin-left: 40%; padding-right: 80px; padding-left: 40px; }
  h1 { font-size: 24px; letter-spacing: 3px; }
}

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .frame, .strip { display: none; }
  .header { top: 0; left: 0; right: 0; padding: 0 16px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
  .logo { width: 180px; height: 32px; }
  .nav-toggle { display: block; }
  .mainmenu {
    position: fixed; top: 60px; left: 0; right: 0;
    background: #333;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .mainmenu.is-open { max-height: 240px; }
  .mainmenu ul { flex-direction: column; padding: 10px 0; }
  .mainmenu a { line-height: 44px; padding: 0 16px; color: rgba(255,255,255,.8); }
  .mainmenu a[aria-current="page"], .mainmenu a:hover { color: #fff; }

  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

  body { display: flex; flex-direction: column; min-height: 100vh; }
  .main {
    flex: 1;
    margin: 0;
    padding: 100px 16px 40px;
    min-height: 0;
    background: rgba(255,255,255,.9);
  }
  h1 { font-size: 20px; letter-spacing: 2px; hyphens: auto; }
  .leadertext p { font-size: 19px; }
  .legal .lead { font-size: 18px; }

  .footer {
    position: relative; left: auto; right: auto; bottom: auto;
    height: auto; z-index: 10;
    justify-content: center;
    padding: 24px 16px; text-align: center; line-height: 2;
  }
}

/* ---------- Tablet hochkant: etwas mehr Rand und Schrift ---------- */
@media (min-width: 600px) and (max-width: 900px) {
  .main { padding: 110px 48px 48px; }
  .leadertext p { font-size: 21px; }
}
