
/* arte-fractum – Grunddesign */

:root {
  --farbe-hintergrund: #101d36;
  --farbe-flaeche: #192b49;
  --farbe-text: #f0f3fa;
  --farbe-sekundaer: #b8c9e8;
  --farbe-linie: #354763;

  --inhalt-breite: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--farbe-hintergrund);
  color: var(--farbe-text);
  line-height: 1.6;
}

a {
  color: var(--farbe-sekundaer);
}

a:hover {
  color: var(--farbe-text);
}

header,
main,
footer {
  width: min(100% - 2rem, var(--inhalt-breite));
  margin-inline: auto;
}

header {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--farbe-linie);
}

main {
  padding-block: 3rem;
  min-height: 60vh;
}

footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--farbe-linie);
  font-size: 0.875rem;
}

h1, h2, h3 {
  line-height: 1.25;
}

p {
  max-width: 70ch;
}

/* Header und Navigation */


.seitenkopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;

  width: 100%;
  max-width: none;
  min-height: 150px;
  padding: 1.5rem max(
    1rem,
    calc((100% - 1200px) / 2)
  );

  background-color: var(--farbe-hintergrund);
  background-image: url("../bilder/header-bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  border-bottom: 1px solid var(--farbe-linie);
}


.logo {
  color: var(--farbe-text);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.kopf-rechts {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hauptnavigation {
  display: flex;
  gap: 1.5rem;
}

.hauptnavigation a,
.sprachen a {
  text-decoration: none;
}

.sprachen {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.menu-schalter {
  display: none;
}

/* Smartphone */

@media (max-width: 768px) {
  .seitenkopf {
    position: relative;
  }

  .kopf-rechts {
    gap: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .menu-schalter {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-schalter span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--farbe-text);
  }

  .hauptnavigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.5rem;
    background: var(--farbe-flaeche);
    flex-direction: column;
  }

  .hauptnavigation.offen {
    display: flex;
  }
}

/* Original-Logo */

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: clamp(180px, 25vw, 330px);
  height: auto;
}

/* Header auf Smartphones */

@media (max-width: 768px) {
  .seitenkopf {
    min-height: 100px;
    padding: 1rem;
    gap: 0.5rem;
    background-position: center;
  }

  .logo img {
    width: clamp(140px, 38vw, 220px);
  }

  .kopf-rechts {
    gap: 0.75rem;
  }

  .sprachen {
    gap: 0.4rem;
  }
}

/* Sehr schmale Smartphones */

@media (max-width: 380px) {
  .logo img {
    width: 135px;
  }

  .sprachen {
    font-size: 0.7rem;
  }
}


/* Fußzeile */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* Startseite */

.startseite {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.startseite h1 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.einleitung {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.7;
}

.titelwerk {
  margin: 0;
}

.titelwerk img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.titelwerk figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  font-size: 0.95rem;
}


/* Kunstgalerie */

.kunstseite {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.kunstseite h1 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 280px), 1fr)
  );
  gap: 2rem;
  align-items: start;
}

.galeriewerk {
  margin: 0;
  min-width: 0;
}

.galeriewerk img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.galeriewerk figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 0;
  font-size: 0.95rem;
}

/* Thematische Bildwelten */

.kunstbereich {
  margin-top: 4rem;
}

.kunstbereich h2 {
  margin-bottom: 1rem;
}

.themenraster {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 300px), 1fr)
  );
  gap: 2rem;
  margin-top: 2rem;
}

.themenkarte {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.themenbild {
  padding: 1rem;
}

.themenbild img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.themeninhalt {
  padding: 0 1.25rem 1.5rem;
}

.themeninhalt h3 {
  margin: 0 0 0.75rem;
}

.themeninhalt p {
  margin: 0;
  line-height: 1.6;
}

/* Bildgrößen in den Übersichten */

.galerie {
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 280px), 340px)
  );
  justify-content: start;
}

.themenraster {
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(100%, 280px), 380px)
  );
  justify-content: start;
}

/* Originalproportionen der Kunstwerke bewahren */

.galeriewerk,
.themenkarte {
  align-self: start;
}

.galeriewerk img,
.themenbild img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
}

/* Links innerhalb der Themenkarten */

.themeninhalt h3 a {
  color: inherit;
  text-decoration: none;
}

.themeninhalt h3 a:hover,
.themeninhalt h3 a:focus-visible {
  color: var(--primary, #ca3838);
  text-decoration: underline;
}

/* Vollständig anklickbare Themenkarten */

.themenkarten-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.themenkarten-link:hover h3,
.themenkarten-link:focus-visible h3 {
  color: var(--primary, #ca3838);
  text-decoration: underline;
}

.themenkarten-link:focus-visible {
  outline: 2px solid var(--primary, #ca3838);
  outline-offset: -2px;
}

/* Navigation zu den Werkgalerien */

.technik-titel a {
  color: inherit;
  text-decoration: none;
}

.technik-titel a:hover,
.technik-titel a:focus-visible {
  color: var(--primary, #ca3838);
  text-decoration: underline;
}

/* Einzelwerkansicht */

.einzelwerk {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.werk-kopf {
  text-align: center;
  margin-bottom: 2.5rem;
}

.werk-kopf h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
}

.werk-gross {
  margin: 0;
  text-align: center;
}

.werk-gross img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.werk-beschreibung {
  max-width: 760px;
  margin: 2.5rem auto;
  line-height: 1.7;
}

.werk-navigation {
  margin-top: 3rem;
}

.werk-navigation a {
  color: inherit;
}

.werk-navigation a:hover,
.werk-navigation a:focus-visible {
  color: var(--primary, #ca3838);
}

/* Verlinkung der Galeriewerke */

.werk-link {
  color: inherit;
  text-decoration: none;
}

.werk-link img {
  display: block;
}

.werk-link:hover,
.werk-link:focus-visible {
  color: var(--primary, #ca3838);
}

.werk-link:focus-visible {
  outline: 2px solid var(--primary, #ca3838);
  outline-offset: 4px;
}

/* ----------------------------------------
   Modale Fenster – Rechtliche Informationen
   ---------------------------------------- */


#rechtliches-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0;

  border: 1px solid var(--farbe-linie);
  border-radius: 8px;

  background: var(--farbe-flaeche);
  color: var(--farbe-text);

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}


#rechtliches-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.dialog-inhalt {
  position: relative;
  padding: 2.5rem;
}

.dialog-schliessen {
  position: sticky;
  top: 0;
  float: right;
  margin: -1.5rem -1.5rem 0 1rem;
  padding: 0.25rem 0.65rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--farbe-sekundaer);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-schliessen:hover,
.dialog-schliessen:focus-visible {
  background: rgba(128, 128, 128, 0.15);
}

#rechtliches-inhalt h1 {
  margin-top: 0;
  padding-right: 2rem;
}

#rechtliches-inhalt h2 {
  margin-top: 1.8rem;
}

#rechtliches-inhalt p {
  line-height: 1.65;
}

@media (max-width: 600px) {
  .dialog-inhalt {
    padding: 1.5rem;
  }

  .dialog-schliessen {
    margin: -0.75rem -0.75rem 0 0.5rem;
  }
}


