/* ============================================================================================= */
/*    TYPEFACES - Schriftarten einbinden                                                         */
/* ============================================================================================= */
@font-face {
  font-family: 'dieKittieb_sans';
  src: url('./assets/fonts/MerriweatherSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_sans';
  src: url('./assets/fonts/MerriweatherSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_serif';
  src: url('./assets/fonts/Lora-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_serif';
  src: url('./assets/fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_typewriter';
  src: url('./assets/fonts/SpecialElite.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_handwriting';
  src: url('./assets/fonts/Caveat-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_serif_compat';
  src: url('./assets/fonts/NotoSerif-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_serif_compat';
  src: url('./assets/fonts/NotoSerif-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_sans_compat';
  src: url('./assets/fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'dieKittieb_sans_compat';
  src: url('./assets/fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ============================================================================================= */
/*    VARIABLENDEFINITION                                                                        */
/* ============================================================================================= */

:root {
  /* --- Schriften ---------------------------------------------------------- */

  --tf-sans: 'dieKittieb_sans', sans-serif;
  --tf-serif: 'dieKittieb_serif', serif;
  --tf-handwriting: 'dieKittieb_handwriting', serif;
  --tf-typewriter: 'dieKittieb_typewriter', monospace;

  /* --- sonstige globale Variablen ----------------------------------------- */

  --nav-transition-speed: 0.3s;

  /* --- Farbpalette Hauptmodus --------------------------------------------- */

  --color-fg: hsl(0deg 0% 10%); /* fast schwarz (Text) */
  --color-fg-vivid: hsl(0deg 0% 0%); /* schwarz (max. Kontrast) */
  --color-fg-muted: hsl(39deg 15% 15%); /* dezentes warmes dunkelgrau */

  --color-bg: hsl(0deg 0% 95%); /* fast weiß */
  --color-bg-vivid: hsl(0deg 0% 100%); /* reines weiß */
  --color-bg-muted: hsl(270deg 20% 90%); /* dezentes, warmes hellgrau */

  --color-primary: hsl(270deg 31% 50%);
  --color-primary-vivid: hsl(270deg 31% 55%); /* +5% heller */
  --color-primary-muted: hsl(270deg 31% 45%); /* -5% dunkler */

  --color-secondary: hsl(198deg 70% 43%);
  --color-secondary-vivid: hsl(198deg 70% 53%); /* +5% heller */
  --color-secondary-muted: hsl(198deg 70% 33%); /* -5% dunkler */
}

/* ----- Variablen für alternativen Farbmodus ------------------------------- */
[data-theme='dark'] {
  --color-fg: hsl(0deg 0% 90%);
  --color-fg-vivid: hsl(0deg 0% 100%);
  --color-fg-muted: hsl(39deg 10% 80%);

  --color-bg: hsl(0deg 0% 10%);
  --color-bg-vivid: hsl(0deg 0% 0%);
  --color-bg-muted: hsl(39deg 10% 15%);

  --color-primary: hsl(44deg 90% 53%);
  --color-primary-vivid: hsl(44deg 90% 63%);
  --color-primary-muted: hsl(44deg 90% 43%);

  --color-secondary: hsl(31deg 87% 53%);
  --color-secondary-vivid: hsl(31deg 87% 63%);
  --color-secondary-muted: hsl(31deg 87% 43%);
}

/* ============================================================================================= */
/*    NORMALIZE und grundlegende Einstellungen                                                   */
/* ============================================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ----- UTILITY KLASSEN ----------------------------------------------------------------------- */

.u-tf-sans {
  font-family: var(--tf-sans);
}
.u-tf-serif {
  font-family: var(--tf-serif);
}
.u-tf-hand {
  font-family: var(--tf-handwriting);
}
.u-tf-typewriter {
  font-family: var(--tf-typewriter);
}

.u-alignCentered {
  text-align: center;
}
.u-alignRight {
  text-align: right;
}

.u-blockCentered {
  display: block;
  margin: 0 auto;
  width: 50%;
}
.u-hidden {
  display: none !important;
}
.u-hiddenVisually {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
}

/* ============================================================================================= */
/*    SEITENAUFBAU - Allgemeiner Bereich                                                         */
/* ============================================================================================= */

body {
  font-family: var(--tf-sans);
  color: var(--color-fg);
  background-color: var(--color-bg-muted);
}

.wrapper {
  max-width: 75rem;
  margin: 0 auto;
  background-color: var(--color-bg);
}

/* ----- Skiplink für Screenreader ------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-primary-vivid);
  color: var(--color-bg-vivid);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

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

/* ----- Headlines: Layout --------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--tf-serif);
  font-weight: 700;
  margin: 1.5em 0 0.5em;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.2rem;
}
h5 {
  font-size: 1.15rem;
}
h6 {
  font-size: 1rem;
}

/* ----- Absätze ------------------------------------------------------------------------------- */

p {
  margin-bottom: 1rem;
}

/* ----- Listen -------------------------------------------------------------------------------- */

ul,
ol {
  margin: 0 0 1rem 2rem;
  padding: 0;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.5rem;
}

/* --- Hervorhebungen & Inline-Elemente -------------------------------------------------------- */

.kbd {
  display: inline-block;
  padding: 0.2em 0.5em;
  margin: 0 0.15em;
  font-family: monospace;
  font-size: 1.15rem;
  line-height: 1;
  border: 1px solid var(--color-fg);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 var(--color-fg-muted);
  white-space: nowrap;
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

blockquote {
  font-family: var(--tf-serif);
  font-style: italic;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--color-primary-muted);
  background-color: var(--color-bg-muted);
}

code {
  font-family: var(--tf-typewriter);
  font-size: 0.95em;
  background-color: var(--color-bg-muted);
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
}

pre {
  font-family: var(--tf-typewriter);
  background-color: var(--color-bg-muted);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* ----- Links: Layout und Verhalten ----------------------------------------------------------- */

a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
  outline-color: transparent;
}
a:visited {
  color: var(--color-primary-muted);
  text-decoration-style: dotted;
}
a:focus {
  outline: 2px solid var(--color-primary-vivid);
  outline-offset: 2px;
}
a:hover {
  color: var(--color-primary-vivid);
  background-color: var(--color-bg-muted);
}
a:active {
  color: var(--color-primary-vivid);
  background-color: var(--color-bg-muted);
  outline-color: var(--color-primary-vivid);
}

a[href^='http']::after,
a[href^='mailto']::before,
a[href^='tel']::before {
  font: var(--fa-font-solid);
  display: inline-block;
  margin-inline: 0.45em;
  content: '';
}
a[href^='http']:not(:has(img))::after {
  content: '\f08e';
}
a[href^='mailto']::before {
  content: '\f0e0';
}
a[href^='tel']::before {
  content: '\f095';
}

/* ============================================================================================= */
/*    SEITENAUFBAU - Header Bereich und Navigation                                               */
/* ============================================================================================= */

.header {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 3px solid var(--color-primary);
  background-color: var(--color-bg-vivid);
}

/* ----- Navigationsbereich und Navbar --------------------------------------------------------- */

.nav {
  transition: opacity var(--nav-transition-speed);
}

/* ----- Navigation im Mobile Layout (max-width: 767px) ---------------------------------------- */

@media (max-width: 767px) {
  .header {
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      'nav-toggle logo theme-toggle'
      'nav nav nav';
  }

  .header-controls {
    display: contents;
  }

  .header__nav-toggle {
    grid-area: nav-toggle;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
  }

  .header__theme-toggle {
    grid-area: theme-toggle;
    display: inline-block;
    background-color: var(--color-bg);
    color: var(--color-fg);
    border: 2px solid var(--color-fg);
    border-radius: 4px;
    width: 5rem;
    font-weight: 300;
    vertical-align: middle;
    text-align: center;
  }

  .logo {
    grid-area: logo;
    text-align: center;
    max-height: 100px;
  }

  .nav {
    grid-area: nav;
    display: none;
  }

  .nav.active {
    display: block;
  }
  .nav__list {
    list-style-type: none;
  }

  .nav__item {
    padding: 0.5rem 2rem;
    text-transform: uppercase;
    font-weight: 800;
    border-bottom: 1px solid var(--color-primary);
  }

  .nav__item--has-submenu {
    position: relative;
  }

  .nav__item--has-submenu > .nav__submenu-toggle {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
  }

  .nav__item a {
    text-decoration: none;
  }

  .nav__item--has-submenu > a {
    padding-right: calc(1.15rem + 0.5rem);
  }

  .nav__submenu {
    list-style-type: none;
  }
}

/* ----- Navigation im Desktop Layout (min-width: 768px) --------------------------------------- */

@media (min-width: 768px) {
  .header__nav-toggle {
    display: none;
  }

  .header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'logo controls'
      'logo nav';
  }

  .logo {
    grid-area: logo;
    justify-self: start;
    align-self: start;
    max-height: 100px;
  }

  .header-controls {
    grid-area: controls;
    justify-self: end;
    align-self: start;
  }

  .nav {
    grid-area: nav;
    justify-self: stretch;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .nav__list {
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    gap: 1rem;
    justify-content: flex-end;
    align-items: flex-end;
    list-style-type: none;
  }

  .nav__item {
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav__item--has-submenu {
    position: relative;
  }

  .nav__item a {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }

  .nav__submenu {
    position: absolute;
    top: 100%;
    left: calc(-2rem);
    margin-top: 0.25rem;
    z-index: 51;
    list-style-type: none;
    background-color: var(--color-bg-vivid);
  }

  .nav__submenu li {
    border-left: 3px solid var(--color-primary);
    margin: 0;
    padding: 0;
  }

  .nav__submenu a {
    display: inline-block;
    width: 100%;
  }
}

/* ----- Zustände und Interaktionen ------------------------------------------------------------ */

.header__nav-toggle.open .hamburger {
  background-color: var(--color-primary-muted);
}

.nav__submenu {
  display: none;
  transition: opacity var(--nav-transition-speed);
}

.nav__submenu-toggle[aria-expanded='true'] + .nav__submenu,
.nav__submenu.active {
  display: block;
}

button:focus,
.nav__item a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ----- Hamburger Button ---------------------------------------------------------------------- */

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  position: relative;
  transition: background-color var(--nav-transition-speed);
}

.hamburger::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition:
    transform var(--nav-transition-speed),
    opacity var(--nav-transition-speed);
}

.hamburger::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  transition:
    transform var(--nav-transition-speed),
    opacity var(--nav-transition-speed);
}

.header__nav-toggle.open .hamburger {
  background-color: transparent;
}
.header__nav-toggle.open .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}
.header__nav-toggle.open .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
  opacity: 1;
}

/* ----- Submenu Toggle Button ----------------------------------------------------------------- */

.nav__submenu-toggle {
  background-color: var(--color-bg-vivid);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}
.nav__submenu-toggle .submenu-icon {
  display: inline-block;
  width: 0px;
  height: 0px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--color-primary); /* Farbe des Dreiecks */
  transition: transform var(--nav-transition-speed);
}
.nav__submenu-toggle[aria-expanded='true'] .submenu-icon {
  transform: scaleY(-1);
}

/* ----- Theme-Wechsel-Button ------------------------------------------------------------------ */

.header__theme-toggle {
  display: inline-block;
  font-weight: 300;
  width: 5rem;
  vertical-align: middle;
  text-align: center;
  font-size: 0.9rem;
  background-color: var(--color-bg-vivid);
  color: var(--color-fg);
  border: 2px solid var(--color-fg);
  border-radius: 5px;
  transition-duration: var(--nav-transition-speed);
}

.header__theme-toggle:hover {
  color: var(--color-fg-vivid);
  border: 2px solid var(--color-fg-vivid);
}

.header__theme-toggle:active {
  background-color: var(--color-bg-muted);
}

/* ============================================================================================= */
/*    SEITENAUFBAU - Footer Bereich                                                              */
/* ============================================================================================= */

.footer {
  background-color: var(--color-bg);
  border-top: 3px solid var(--color-primary);
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__colgroup {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__col {
  flex: 1;
  text-align: center;
}

.footer__col ul {
  list-style-type: none;
  margin: 0;
  padding: 0.5rem 1rem;
}

.socialMediaWrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.socialMediaWrapper a[href^='http'] {
  font-size: 2rem;
}

.socialMediaWrapper a[href^='http']::after {
  content: '';
  margin-inline: 0;
}

.footer__bottomline {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-fg-muted);
  padding-top: 1rem;
  background-color: var(--color-bg-vivid);
}

@media (min-width: 768px) {
  .footer__colgroup {
    flex-direction: row;
  }
}

/* ============================================================================================= */
/*    SEITENAUFBAU - Main Bereich                                                                */
/* ============================================================================================= */

main {
  padding: 1rem 2rem;
}

section {
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.titelimage {
  max-width: 20rem;
}

/* ============================================================================================= */
/*    M O D U L  -  Chatoberfläche mit AI                                                        */
/* ============================================================================================= */

.chatContainer {
  display: grid;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-fg-muted);
  border-radius: 8px;
  grid-template-areas:
    'model'
    'temp'
    'sysmsg'
    'resethelp'
    'chatverlauf'
    'input'
    'send'
    'status';
}

/* Toolbar (Modell, Neu, Anleitung) */
.chatContainer select,
.chatContainer textarea,
.chatContainer input[type='text'],
.chatContainer button {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--color-fg);
  border-radius: 6px;
  background: var(--color-bg-vivid);
  color: var(--color-fg);
}
.chatContainer button {
  cursor: pointer;
  font-weight: 600;
}
.chatContainer button:hover {
  background: var(--color-bg-muted);
}
.chatContainer button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#chatUserMessageInput {
  min-height: 8rem; /* initial größer */
  line-height: 1.4;
  resize: vertical; /* Nutzer darf vergrößern */
  width: 100%;
  box-sizing: border-box;
}

/* Statuszeile */
#chatStatusZeile {
  padding: 0.4rem 0.6rem;
  border: 1px dashed var(--color-fg-muted);
  border-radius: 6px;
  background: var(--color-bg-vivid);
}

/* Hilfe-Panel */
#helpPanel[hidden] {
  display: none;
}
#helpPanel {
  border: 1px solid var(--color-fg-muted);
  border-radius: 8px;
  background: var(--color-bg-vivid);
  padding: 0.75rem 1rem;
}
#helpPanel h2 {
  margin-top: 0;
}

#helpPanel dt {
  padding-bottom: 0.25rem;
  font-size: 1.15rem;
}

#helpPanel dd {
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

/* Chatfenster */
#chatWindow {
  max-height: 60vh; /* genug Platz, aber scrollbar */
  min-height: 30vh;
  overflow: auto;
  padding: 0.75rem;
  border: 2px solid var(--color-fg);
  border-radius: 8px;
  background: var(--color-bg-vivid);
  scrollbar-gutter: stable; /* verhindert Layoutsprünge */
}

/* Nachrichten */
.msg {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  outline: none; /* wir setzen eigenen Focusring */
  word-break: break-word;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-fg-muted);
  white-space: pre-wrap;
}
.msg:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  background: var(--color-bg-vivid);
}

/* visuelle Differenzierung */
.msg-user {
  border: 1px solid var(--color-primary-muted);
  border-left: 4px solid var(--color-primary-muted);
}
.msg-assistant {
  border: 1px solid var(--color-secondary-muted);
  border-left: 4px solid var(--color-secondary-muted);
}
.msg-system {
  font-style: italic;
  opacity: 0.9;
  border-left: 4px solid var(--color-fg-muted);
}

.chatContainer {
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    'model model reset'
    'chatverlauf chatverlauf chatverlauf'
    'input input input'
    'send send send'
    'status status status'
    'temp temp temp'
    'sysmsg sysmsg sysmsg';
}

/* Eingabe + Senden nebeneinander (ab md) */
@media (min-width: 640px) {
  .chatContainer {
    grid-template-columns: 1fr 1fr auto auto;
    grid-template-areas:
      'model model reset help'
      'chatverlauf chatverlauf chatverlauf chatverlauf'
      'input input input send'
      'status status status status'
      'temp sysmsg sysmsg sysmsg';
  }
}

/* Element-Zuweisungen für Desktop */
#modelSelect {
  grid-area: model;
}
#advTemp {
  grid-area: temp;
}
#advSysMsg {
  grid-area: sysmsg;
}
#resetButton {
  grid-area: reset;
}
#helpToggle {
  grid-area: help;
}
#chatWindow {
  grid-area: chatverlauf;
}
#chatUserMessageInput {
  grid-area: input;
}
#sendButton {
  grid-area: send;
}
#chatStatusZeile {
  grid-area: status;
}

.kbd {
  background: var(--color-bg-vivid);
  border-color: var(--color-fg-muted);
  box-shadow: inset 0 -1px 0 var(--color-bg-muted);
}

#advSysMsg {
  width: 100%;
  min-height: 6rem;
  box-sizing: border-box;
}
#advTemp {
  width: 6rem;
  justify-self: start;
}
#chatStatusZeile {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
#chatStatusZeile .status-msg {
  flex: 1 1 auto;
}
#chatStatusZeile .status-metrics {
  flex: 0 0 auto;
  opacity: 0.8;
}

/* ============================================================================================= */
/*    M O D U L  -  Voxtral Oberfläche                                                           */
/* ============================================================================================= */

.voxtralContainer {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-fg-muted);
  border-radius: 8px;
  grid-template-areas:
      'title'
      'description'
      'filelabel'
      'fileinput'
      'filehelp'
      'sendbutton'
      'outputlabel copybutton'
      'output'
      'status';
}

/* --- Gemeinsame Stile für Eingabefelder, Buttons, Dropdowns --- */
.voxtralContainer select,
.voxtralContainer input[type="file"],
.voxtralContainer input[type="text"],
.voxtralContainer textarea,
.voxtralContainer button {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--color-fg);
  border-radius: 6px;
  background: var(--color-bg-vivid);
  color: var(--color-fg);
  font-family: var(--tf-sans);
}

.voxtralContainer button {
  cursor: pointer;
  font-weight: 600;
  background: var(--color-bg-vivid);
}

.voxtralContainer button:hover:not(:disabled) {
  background: var(--color-bg-muted);
}

.voxtralContainer button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#voxtralTitle {
  grid-area: title;
  margin: 0;
}

#voxtralDescription {
  grid-area: description;
  margin: 0;
  opacity: 0.9;
}

#voxtralFileLabel {
  grid-area: filelabel;
  font-weight: 600;
}

#voxtralFileInput {
  grid-area: fileinput;
  width: 100%;
}
#voxtralFileInput::file-selector-button {
  padding: 0;
  height: 100%;
}

.voxtralHelp {
  grid-area: filehelp;
  font-size: 0.85em;
  color: var(--color-fg-muted);
}

#voxtralSendButton {
  grid-area: sendbutton;
  justify-self: start;
}

#voxtralOutputLabel {
  grid-area: outputlabel;
}

#voxtralCopyButton {
  grid-area: copybutton;
  align-self: start;
  margin-top: 0.5rem;
}

#voxtralTranscribeOutput {
  grid-area: output;
  min-height: 10rem;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
}

#voxtralStatus {
  grid-area: status;
  padding: 0.4rem 0.6rem;
  border: 1px dashed var(--color-fg-muted);
  border-radius: 6px;
  background: var(--color-bg-vivid);
  text-align: center;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Fokus-Stile */
.voxtralContainer input:focus,
.voxtralContainer textarea:focus,
.voxtralContainer button:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  background: var(--color-bg-vivid);
}

/* Responsives Design */
@media (min-width: 640px) {
  .voxtralContainer {
    grid-template-columns: 1fr auto;
      grid-template-areas:
        'title title'
        'description description'
        'filelabel filelabel'
        'fileinput sendbutton'
        'filehelp filehelp'
        'outputlabel copybutton'
        'output output'
        'status status';
  }
  #voxtralSendButton {
    grid-area: sendbutton;
    align-self: end;
    margin-bottom: 0.75rem;
  }
  .voxtralHelp {
    grid-column: 1;
  }
}

/* ============================================================================================= */
/*    M O D U L  -  Polaroidbilder                                                               */
/* ============================================================================================= */

.fotocontainer {
  display: flex;
  width: 100%;
  margin: 2rem auto;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

ul.polaroid li {
  list-style: none;
  max-width: 15rem;
  display: inline-block;
  background-color: white;
  background: linear-gradient(110deg, white, oldlace);
  box-shadow: 4px 4px 15px gray;
  vertical-align: top;
  margin: 1.3rem;
  position: relative;
  transform: rotate(4deg);
  transition: all ease 0.6s;
}
ul.polaroid img {
  max-width: 90%;
  height: auto;
  margin: 5% 5% 0 5%;
}
ul.polaroid span {
  display: inline-block;
  width: 90%;
  min-height: 54px;
  margin: 0 5% 5% 5%;
  text-align: center;
  font-family: var(--tf-handwriting);
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
}
figure.polaroid {
  background: white;
  background: linear-gradient(110deg, white, oldlace);
  box-shadow: 4px 4px 15px gray;
  max-width: 15rem;
  vertical-align: top;
}
figure.polaroid img {
  max-width: 90%;
  height: auto;
  margin: 5% 5% 0 5%;
}
figure.polaroid figcaption {
  width: 90%;
  min-height: 52px;
  margin: 0 5% 5% 5%;
  text-align: center;
}
ul.polaroid li:nth-child(1) {
  transform: rotate(4deg);
}
ul.polaroid li:nth-child(2) {
  transform: rotate(-3deg);
}
ul.polaroid li:nth-child(3) {
  transform: rotate(6deg);
}
ul.polaroid li:nth-child(4) {
  transform: rotate(-5deg);
}
