/* Düsseldorfer Segler-Verein – Wartungsseite
   Angelehnt an das bisherige Joomla/Protostar-Template (#02ab10, #f4f6f7). */

:root {
  --dsv-green: #02ab10;        /* Vereinsgrün aus dem alten Template */
  --dsv-green-dark: #017a0b;   /* für Text/Links, ausreichender Kontrast */
  --dsv-green-soft: #e8f7e9;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --text: #333333;
  --muted: #5f6b70;
  --border: #dde3e6;
  --radius: 6px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  border-top: 3px solid var(--dsv-green);
}

a { color: var(--dsv-green-dark); }
a:hover, a:focus { color: var(--text); }

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

.container {
  max-width: 1080px;
  margin: 20px auto;
  padding: 0 16px;
}

.page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 6px rgba(0, 0, 0, .05);
  padding: 24px;
}

/* Header */
.header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.header img { width: 100%; max-width: 543px; }

.statusbar {
  margin: 16px 0 24px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--dsv-green);
  color: #fff;
  font-weight: bold;
  letter-spacing: .02em;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--dsv-green-dark);
}
.hero p { margin: 0 0 12px; }
.hero .lead { font-size: 1.15rem; }
.hero figure { margin: 0; }
.hero img { border-radius: var(--radius); }

figcaption {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 6px;
}

.notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--dsv-green);
  background: var(--dsv-green-soft);
  border-radius: 0 4px 4px 0;
}

/* Inhaltsblöcke */
h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--dsv-green-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfc;
}
.card p:last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.facts li:last-child { border-bottom: 0; }
.facts strong { color: var(--dsv-green-dark); }

address { font-style: normal; }

.pegel img { border: 1px solid var(--border); border-radius: 4px; background: #fff; }

/* Footer */
.footer {
  max-width: 1080px;
  margin: 0 auto 32px;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: .9rem;
  color: var(--muted);
}
.footer nav a { margin-left: 16px; }
.footer nav a:first-child { margin-left: 0; }

/* Rechtstexte */
.legal h1 { color: var(--dsv-green-dark); font-size: 1.8rem; margin-top: 0; }
.legal h2 { margin-top: 28px; }
.legal h3 { margin: 20px 0 6px; font-size: 1.05rem; }
.back { display: inline-block; margin-bottom: 16px; }

@media (max-width: 760px) {
  .page { padding: 16px; }
  .header { justify-content: center; }
  .hero, .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
}

.notice a, address a { overflow-wrap: anywhere; }
