/* oldemeier.net – statisches Stylesheet */

:root {
  --color-bg: #ffffff;
  --color-text: #2b2b2b;
  --color-muted: #6b6b6b;
  --color-accent: #1c4c80;
  --color-accent-dark: #123457;
  --color-link: #1c4c80;
  --color-link-hover: #123457;
  --color-border: #e5e5e5;
  --max-width: 960px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-soft: 0 4px 20px rgba(18, 52, 87, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.has-hero {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.site-header .wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-logo img {
  max-height: 34px;
  width: auto;
  display: block;
}

/* Navigation */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Hero (Startseite) */
.has-hero main {
  flex: 1;
  display: flex;
  min-height: 0;
}

.hero {
  flex: 1;
  min-height: 240px;
  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

/* Page header for inner pages (Impressum, Datenschutz) */
.page-header {
  background: #f2f4f6;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 14px 0;
}

.page-header h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Main content */
main {
  min-height: 30vh;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

main a {
  overflow-wrap: break-word;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

.content-section {
  padding-top: 48px;
  padding-bottom: 56px;
}

main h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
  color: var(--color-accent-dark);
}

main h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

main p {
  margin: 0 0 1rem;
}

main ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

main a {
  color: var(--color-link);
}

main a:hover,
main a:focus {
  color: var(--color-link-hover);
}

.toc {
  background: #f4f7fa;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  padding: 18px 24px;
  margin-bottom: 2rem;
}

.toc h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: #f4f7fa;
  border-top: 1px solid var(--color-border);
  padding: 12px 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.site-footer .wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-muted);
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .site-header .wrapper,
  .site-footer .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrapper {
    padding: 0 18px;
  }

  .content-section {
    padding-top: 32px;
    padding-bottom: 40px;
  }
}
