/* alexanderplatz.com – Frontend-Stylesheet */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rot: #C8102E;
  --dunkel: #1a1a1a;
  --grau: #666;
  --hellgrau: #f4f4f4;
  --linie: #e0e0e0;
  --max: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dunkel);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dunkel);
}
.logo span { color: var(--rot); }

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
nav a {
  color: var(--dunkel);
  font-weight: 500;
  font-size: 0.95rem;
}
nav a:hover { color: var(--rot); text-decoration: none; }

/* Sprachumschalter als Dropdown */
.lang-switch {
  position: relative;
  margin-left: auto;
  border-left: 1px solid var(--linie);
  padding-left: 14px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  color: var(--dunkel);
  line-height: 1;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lang-toggle:hover,
.lang-switch.is-open .lang-toggle {
  border-color: var(--rot);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.lang-toggle img {
  display: block;
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.lang-code {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.lang-chevron {
  color: var(--grau, #666);
  transition: transform 0.15s;
}
.lang-switch.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  list-style: none;
  padding: 4px 0;
  margin: 0;
  z-index: 200;
}
.lang-menu li { margin: 0; }
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--dunkel);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.1s;
}
.lang-item:hover {
  background: #f5f2ec;
  text-decoration: none;
}
.lang-item.is-active {
  background: #faf7f2;
  font-weight: 600;
}
.lang-item img {
  display: block;
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
              url('/assets/img/hero-alex.jpg') center/cover no-repeat;
  background-color: #333;
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 1.2rem; max-width: 720px; margin: 0 auto 28px; opacity: 0.95; }
.hero-cta {
  display: inline-block;
  background: var(--rot);
  color: #fff;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}
.hero-cta:hover { background: #a00d24; text-decoration: none; }

/* Main */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px;
}
section { margin-bottom: 60px; }
h1 { font-size: 2rem; margin-bottom: 20px; }
h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--rot);
  display: inline-block;
}
h3 { font-size: 1.3rem; margin: 24px 0 12px; }
p { margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--grau); margin-bottom: 30px; }

.page-content h2 { margin-top: 40px; }
.page-content ul, .page-content ol { margin-left: 24px; margin-bottom: 16px; }
.page-content li { margin-bottom: 6px; }

/* Rubrik-Kacheln */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.card h3 { margin-top: 0; }
.card h3 a { color: var(--rot); }
.card p { color: var(--grau); font-size: 0.95rem; }
.card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Infobox */
.infobox {
  background: var(--hellgrau);
  border-left: 4px solid var(--rot);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--grau);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--grau); }
.breadcrumb a:hover { color: var(--rot); }

/* Footer */
footer {
  background: var(--dunkel);
  color: #ccc;
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #ccc; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
  color: #999;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner { justify-content: space-between; }
  nav ul { order: 3; width: 100%; justify-content: center; }
  .lang-switch { border-left: none; padding-left: 0; margin-left: 0; }
}
@media (max-width: 720px) {
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.5rem; }
  nav ul { gap: 14px; font-size: 0.9rem; }
}
