

/*Link zu Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,700;1,300;1,700&family=Work+Sans:ital,wght@0,400;0,700;1,700&display=swap');


/* ------------------------------------- */
/* Allgemeine Einstellungen              */
/* ------------------------------------- */
* {
  box-sizing: border-box;
}

 body {
	background: #fff url("/media/allgemein/feintlogo.png") no-repeat top right;
	background-size: 80%;
	color: #303030;
	font-family: 'Nunito', 'Arial', sans-serif;
	font-size: 100%;
}



/* ------------------------------------- */
/* Logo oben links                       */
/* ------------------------------------- */
.header-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.hidden { display: none; }


/* Logo auf größeren Bildschirmen (ab Tablet-Größe) größer anzeigen */
@media (min-width: 768px) {
  .header-logo {
    max-width: 240px;
  }
}

/* Noch größer auf richtig großen Bildschirmen */
@media (min-width: 1200px) {
  .header-logo {
    max-width: 300px;
  }
}


body {
  background-size: 200px auto;
}

@media (min-width: 768px) {
  body {
    background-size: 300px auto;
  }
}

@media (min-width: 1200px) {
  body {
    background-size: 400px auto;
  }
}

/* ------------------------------------- */
/* Seitenbereiche                        */
/* ------------------------------------- */
.pagearea,
.pagearea.pagearea-home {
  max-width: 960px;
  width: 95%;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: auto;
}

.pagearea.pagearea-home {
  max-width: 700px;
}

.textbox {
  padding: 10px 20px;
  border: 1px solid #AAA;
  background: rgba(216, 216, 216, 0.3);
  overflow-x: auto;
  word-wrap: break-word;
  width: 100%;
  max-width: 100%;
}


.narrowbox {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

/* ------------------------------------- */
/* Footer                                */
/* ------------------------------------- */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw; /* oder 100%, wenn kein limitierender Container */
  padding: 8px;
  background: #9DA900;
  line-height: 25px;
  font-size: 85%;
  z-index: 1000;
  text-align: center;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

.footer a:hover {
  color: #ffff00;
  text-decoration: underline;
}
/* ------------------------------------- */
/* Tabellen, Absätze, Texte              */
/* ------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Work Sans', sans-serif;
}

td {
  padding: 4px 8px;
  border: 0;
}

.aussenabstand {
  text-indent: 30px;
}

.center-text {
  text-align: center;
}

.textbox:after,
.pagearea:after {
  content: "";
  display: table;
  clear: both;
}

/* ------------------------------------- */
/* Formulare & Eingabefelder             */
/* ------------------------------------- */
input,
textarea,
select {
  font-size: 16px;
  color: #000;
  font-family: Arial, sans-serif;
}

input[type=button],
input[type=submit],
input[type=reset] {
  border: 1px solid #aaa;
  background: rgb(4, 107, 179);
  color: #fff;
  font-weight: bold;
  padding: 4px;
}

input[type=text],
input[type=password] {
  border: 1px solid #aaa;
  padding: 4px 8px;
  margin: 4px;
  max-width: 100%;
}

input[type=text]:focus {
  background-color: lightblue;
  outline: 1px solid #000;
}

.button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
.button:hover {
  background-color: #0056b3;
}

/* ------------------------------------- */
/* Besondere Layouts                     */
/* ------------------------------------- */
div.rahmen,
div.ergebnis {
  font-family: Arial, Helvetica, sans-serif, Verdana, Tahoma;
  margin: 0.5em;
  border: thin solid;
  background-color: #F5DEB3;
  text-align: left;
  width: 100%;
  max-width: 900px;
}

/* ------------------------------------- */
/* Textarea                              */
/* ------------------------------------- */
textarea {
  color: #3333FF;
  font-size: 18px;
  border: 3px solid #ccc;
  padding: 5px;
  background: #e8eaec;
  width: 100%;
  box-sizing: border-box;
}

/* ------------------------------------- */
/* Radio Buttons                         */
/* ------------------------------------- */
input[type="radio"] {
  accent-color: black;
  margin-right: 6px;
}
input[type="radio"].beispiel-radio {
  accent-color: green;
}

/* ------------------------------------- */
/* Schüttelkasten                        */
/* ------------------------------------- */
.schuettelkasten {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
}
.schuettelkasten span {
  display: inline-block;
  margin: 5px;
  padding: 5px 10px;
  background-color: #e0e0ff;
  border-radius: 5px;
  white-space: nowrap;
}

/* ------------------------------------- */
/* Text mit Bild                         */
/* ------------------------------------- */
.text-with-image-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.text-image {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}
.text-content {
  flex: 1;
  min-width: 200px;
}

/* ------------------------------------- */
/* Bilder                                */
/* ------------------------------------- */
.responsive-img,
.responsive-img2,
.responsive-img3,
.responsive-img4 {
  width: 100%;
  height: auto;
  display: block;
}

.responsive-img {
  max-width: 500px;
  margin: 0 auto;
}
.responsive-img2 {
  max-width: 250px;
}
.responsive-img3 {
  max-width: 300px;
}
.responsive-img4 {
  max-width: 150px;
}

/* ------------------------------------- */
/* Bilder in Grid                        */
/* ------------------------------------- */
.img-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.img-wrapper {
  width: 100%;
  text-align: center;
}
.responsive2-img {
  width: 100%;
  max-width: 150px;
  height: auto;
}

/* ------------------------------------- */
/* Aufgaben-Darstellung kompakter machen */
/* ------------------------------------- */
p > label {
  display: inline-block;
  margin: 2px 0;
  line-height: 1.4;
}

p {
  margin-block-start: 10px;
  margin-block-end: 10px;
}

/* Nur <br> in p mit Radio-Buttons unterdrücken */
p:has(input[type="radio"]) > br {
  display: none;
}

/* ------------------------------------- */
/* Responsive Anpassungen                */
/* ------------------------------------- */
@media (max-width: 600px) {
  .header-logo {
    max-width: 140px;
    width: 60%;
    margin: 12px 0 0 12px;
  }

  .textbox,
  .narrowbox,
  .pagearea,
  .pagearea-home {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  input[type="submit"],
  .button {
    width: 100%;
    font-size: 18px;
  }

  form label {
    display: block;
    line-height: 1.5;
    word-break: break-word;
  }

  input[type="radio"] {
    transform: scale(1.2);
    margin-right: 8px;
  }

  .text-with-image-box {
    flex-direction: column;
  }

  .img-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .img-container {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------- */
/* Beispiel-Aufgaben kompakt darstellen  */
/* ------------------------------------- */
label .beispiel-radio {
  margin-right: 6px;
}

p:has(.beispiel-radio) {
  margin-bottom: 4px;
  line-height: 1.3;
}

p:has(.beispiel-radio) > br {
  display: none;
}

p:has(.beispiel-radio) em:has(.beispiel-radio) {
  display: block;
  margin: 2px 0;
  padding-left: 60px;
  line-height: 1.3;
}

p:has(.beispiel-radio) em:has(.beispiel-radio) label {
  display: block;
}

p:has(input[type="radio"]) label {
  display: block;
  margin: 2px 0;
  line-height: 1.4;
}

/* ------------------------------------- */
/* Ergebnisdarstellung in zwei Spalten   */
/* ------------------------------------- */
.result-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.result-grid .leftcol,
.result-grid .rightcol {
  flex: 1 1 48%;
}

@media (max-width: 768px) {
  .result-grid .leftcol,
  .result-grid .rightcol {
    flex-basis: 100%;
  }
}

/* ------------------------------------- */
/* Checkbox-Bestätigung – englischer Satz auf Handy weiter links */
/* ------------------------------------- */
.confirmation-translation {
  display: block;
  margin-left: 24px;
}

@media (max-width: 600px) {
  .confirmation-translation {
    margin-left: 8px;
  }
}

/* ------------------------------------- */
/* Beispiel-Satz: Einrückung anpassen    */
/* ------------------------------------- */
.example-line {
  display: inline-block;
  margin-top: 6px;
  margin-left: 65px;
}
@media (max-width: 600px) {
  .example-line {
    display: block;
    margin-left: 0;
  }
}

/* ------------------------------------- */
/* Beispiel-Farbe und Stil               */
/* ------------------------------------- */
.beispiel {
  color: purple;
  font-style: italic;
}

.text-image {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

.text-content {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 600px) {
  .text-with-image-box {
    flex-direction: column;
  }

  .text-image {
    margin: 0 auto;
  }

  .text-content {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .header-logo {
    max-width: 240px;
  }
}

@media (min-width: 1200px) {
  .header-logo {
    max-width: 320px;
  }
}

.question-block {
  margin-left: 20px; /* oder was du brauchst */
}
.question-block label {
  display: block; /* alle Radiobuttons untereinander */
  margin-top: 3px;
}

/* ===== Layout: Aufgaben (links) + Tabelle (rechts) ===== */
.aufgaben-layout {
  display: grid;
  grid-template-columns: 1fr 280px; /* links flexibel, rechts fix (anpassen: 240–360px möglich) */
  gap: 20px;
  align-items: start;
}

/* Inhalt darf in der linken Spalte schrumpfen/umbruchfähig sein */
.aufgaben { min-width: 0; }

/* Rechte Spalte füllt die zweite Spalte */
.artikel-tabelle-wrapper { min-width: 0; }

/* Tabelle basic */
.artikel-tabelle {
  border-collapse: collapse;
  width: 100%;
}
.artikel-tabelle td {
  border: 1px solid #aaa;
  padding: 6px 12px;
}

/* Handy: untereinander, Tabelle nach oben */
@media (max-width: 768px) {
  .aufgaben-layout {
    grid-template-columns: 1fr; /* eine Spalte */
  }
  .artikel-tabelle-wrapper {
    order: -1;    /* visuelle Reihenfolge: Tabelle vor Aufgaben */
  }
}




/* ==================================== */
/* Spezielle Styles nur für iOS Safari  */
/* ==================================== */
.ios-safari input.beispiel-chip {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-size: 16px !important; /* verhindert Zoom */
  padding: .55em .6em !important;
  width: fit-content !important;
}

/* Zeichenbreiten */
.ios-safari input.ch-1  { min-width: calc(1ch + 1.2em) !important; }
.ios-safari input.ch-2  { min-width: calc(2ch + 1.2em) !important; }
.ios-safari input.ch-3  { min-width: calc(3ch + 1.2em) !important; }
.ios-safari input.ch-4  { min-width: calc(4ch + 1.2em) !important; }
.ios-safari input.ch-5  { min-width: calc(5ch + 1.2em) !important; }
.ios-safari input.ch-6  { min-width: calc(6ch + 1.2em) !important; }
.ios-safari input.ch-7  { min-width: calc(7ch + 1.2em) !important; }
.ios-safari input.ch-8  { min-width: calc(8ch + 1.2em) !important; }
.ios-safari input.ch-9  { min-width: calc(9ch + 1.2em) !important; }
.ios-safari input.ch-10 { min-width: calc(10ch + 1.2em) !important; }
.ios-safari input.ch-11 { min-width: calc(11ch + 1.2em) !important; }
.ios-safari input.ch-12 { min-width: calc(12ch + 1.2em) !important; }
.ios-safari input.ch-13 { min-width: calc(13ch + 1.2em) !important; }
.ios-safari input.ch-14 { min-width: calc(14ch + 1.2em) !important; }

