/* Hossein Ensan – Presse-Website | Design-System */

:root {
  --bg: #0e1113;
  --bg-elevated: #161a1d;
  --bg-card: #191d20;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececea;
  --text-muted: #a3a9ac;
  --text-faint: #74797c;
  --accent: #c2984f;
  --accent-strong: #d8ac63;
  --warning-bg: #2a1e12;
  --warning-border: #6b4a1e;
  --warning-text: #f0c988;
  --focus: #7fb3d5;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

.section-tight {
  padding: 32px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: block;
}

.text-muted {
  color: var(--text-muted);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Header / Navigation */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(14, 17, 19, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.wordmark:hover {
  text-decoration: none;
  color: var(--accent-strong);
}

.wordmark span {
  color: var(--accent-strong);
}

.main-nav {
  display: none;
}

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

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--accent);
  color: #1a1206;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-weight: 500;
}

.mobile-nav a:hover {
  text-decoration: none;
  color: var(--accent-strong);
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #1a1206;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* Hero */

.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow { margin-bottom: 0.8em; }

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Status banner (WSOP module) */

.status-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 22px 24px;
}

.status-banner h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

.status-banner .status-line {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5em;
}

.status-banner .status-updated {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Hero-Portrait (Startseite, Über-Seite) */

.hero-media {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 720px) {
  .hero-media { grid-template-columns: 1.3fr 1fr; }
}

.hero-portrait {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-portrait figcaption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.hero-portrait--compact {
  max-width: 180px;
  margin-left: auto;
}

@media (max-width: 639px) {
  .hero-portrait--compact {
    max-width: 140px;
  }
}

.inline-figure {
  margin: 0 0 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.inline-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inline-figure figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .inline-figure {
    float: right;
    width: 300px;
    margin: 4px 0 20px 32px;
  }
}

.clearfix {
  clear: both;
}

/* Pull-Quote (O-Töne von Hossein Ensan) */

.pull-quote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}

.pull-quote p {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 0.5em;
  font-style: italic;
}

.pull-quote footer {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: normal;
}

/* Warning box (Fake-Profile) */

.warning-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  padding: 22px 24px;
}

.warning-box h2,
.warning-box h3 {
  color: var(--warning-text);
}

.warning-box a {
  color: var(--warning-text);
  text-decoration: underline;
}

/* Kompakter Warnhinweis-Streifen (Startseite) – Details stehen auf der Unterseite */

.warning-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.92rem;
}

.warning-strip:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.warning-strip-icon {
  flex-shrink: 0;
}

.warning-strip-link {
  color: var(--warning-text);
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
}

/* Cards / grids */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.card h3 {
  color: var(--accent-strong);
}

/* Photo grid */

.photo-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

.photo-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-caption {
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.photo-credit {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Fact sheet table */

.fact-sheet {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.fact-sheet tbody {
  display: block;
}

.fact-sheet tr {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.fact-sheet tr:first-child {
  padding-top: 0;
}

.fact-sheet th {
  text-align: left;
  color: var(--text-faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}

.fact-sheet td {
  color: var(--text);
}

@media (min-width: 640px) {
  .fact-sheet tr {
    flex-direction: row;
    align-items: baseline;
  }
  .fact-sheet th {
    width: 240px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
}

/* Turnierergebnisse-Tabelle */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.92rem;
}

.results-table th,
.results-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.results-table th {
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  background: var(--bg-card);
  white-space: nowrap;
}

.results-table td:nth-child(2),
.results-table td:nth-child(3) {
  white-space: nowrap;
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

/* News list */

.news-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child { padding-top: 0; }

.news-date {
  font-size: 0.82rem;
  color: var(--accent-strong);
  font-weight: 600;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 6px;
}

.news-item h3 {
  margin-bottom: 0.4em;
}

.press-mention {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.press-mention:first-child { padding-top: 0; }

.press-mention .source {
  font-weight: 600;
  color: var(--text);
}

.press-mention .meta {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Forms */

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

/* Honeypot field must stay invisible to humans but present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: 6px;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background: rgba(94, 158, 94, 0.12);
  border: 1px solid rgba(94, 158, 94, 0.4);
  color: #a7d7a7;
}

.form-status.error {
  background: rgba(180, 80, 70, 0.12);
  border: 1px solid rgba(180, 80, 70, 0.4);
  color: #e3a89f;
}

/* Language content toggling (DE/EN bilingual pages) */

/* Ohne JavaScript ist Deutsch die sichtbare Standardsprache (progressive enhancement) */
[data-lang-content="en"] {
  display: none;
}

[data-lang-content="de"] {
  display: block;
}

/* Sobald JS lädt, übernehmen diese Klassen die Kontrolle (siehe nav.js) */
[data-lang-content].lang-hidden {
  display: none !important;
}

[data-lang-content].lang-active {
  display: block !important;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 64px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1206;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}
