/* Optik der Webseite kidskartschool.at: weisser Grund, Tahoma, Gruen #00553c, Rot #df2c19.
   Die Seite wird in einem iframe angezeigt; sie darf nie die ganze Fensterhoehe verlangen. */
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 Tahoma, Geneva, sans-serif; color: #1d2733; background: #fff; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
a { color: #00553c; }
header { border-bottom: 1px solid #e1e6eb; }
header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
header a, header .link { color: #1d2733; text-decoration: none; }
header .brand { font-weight: 700; font-size: 18px; color: #00553c; }
nav { display: flex; gap: 16px; align-items: center; font-size: 14px; }
nav form { margin: 0; }
button.link { background: none; border: 0; color: #1d2733; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
main { padding-top: 20px; padding-bottom: 20px; }
footer { padding-bottom: 24px; font-size: 13px; color: #5c6b7a; }
footer a { color: #5c6b7a; }
.card { background: #fff; border: 1px solid #e1e6eb; border-radius: 4px; padding: 24px; }
h1 { margin: 0 0 16px; font-size: 30px; font-weight: 700; color: #00553c; }
h2 { color: #00553c; }
.pagetitle { margin-bottom: 20px; }
.back { margin: 0 0 12px; font-size: 14px; }
.gallery img#mainphoto { width: 100%; max-height: 440px; object-fit: contain; background: #f6f6f6; border-radius: 4px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumb img { width: 90px; height: 68px; object-fit: cover; border-radius: 4px; border: 2px solid #e1e6eb; }
.desc { margin: 16px 0; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 20px 0; padding: 16px 0; border-top: 1px solid #e1e6eb; border-bottom: 1px solid #e1e6eb; }
.facts .label { display: block; font-size: 13px; color: #5c6b7a; }
.facts .big { font-size: 28px; font-weight: 700; }
.facts .big.small { font-size: 18px; }
.countdown { display: block; font-size: 14px; color: #df2c19; font-weight: 700; }
.note { margin: 12px 0; }
.ok { color: #166534; }
.warn { color: #b91c1c; }
.bidform { margin-top: 12px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #c3ccd5; border-radius: 4px; font: inherit; }
.bidform input { max-width: 240px; display: block; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1 1 180px; }
button.primary, a.button { display: inline-block; margin-top: 12px; padding: 10px 18px; border: 0; border-radius: 4px; background: #00553c; color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
button.primary:hover, a.button:hover { background: #003d2b; }
.hint { font-size: 13px; color: #5c6b7a; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; background: #e8f0fe; }
.flash.ok { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e1e6eb; vertical-align: top; }
.small { font-size: 13px; color: #5c6b7a; }

/* Uebersicht: 1 bis 4 Auktionen als Karten */
/* Die Uebersicht darf breiter sein als der Rest (1148 px, wie die Seite): am Desktop vier Karten je Zeile.
   Auf dem Handy (bis 600 px) zwei je Zeile, kleiner gesetzt. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px;
         position: relative; left: 50%; transform: translateX(-50%); width: min(1148px, calc(100vw - 32px)); }
@media (max-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .acard img, .acard .nophoto { height: 120px; }
  .abody { padding: 10px 12px 12px; }
  .abody h2 { font-size: 16px; margin-bottom: 6px; }
  .afact .big { font-size: 18px; }
  .afact { font-size: 13px; }
}
.acard { display: block; border: 1px solid #e1e6eb; border-radius: 4px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.acard:hover { border-color: #00553c; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.acard img, .acard .nophoto { display: block; width: 100%; height: 190px; object-fit: cover; background: #f6f6f6; }
.abody { padding: 14px 16px 16px; }
.abody h2 { margin: 0 0 10px; font-size: 20px; }
.afact { margin-bottom: 8px; }
.afact .label { display: block; font-size: 12px; color: #5c6b7a; }
.afact .big { font-size: 22px; font-weight: 700; }

/* Verwaltung: Reiter fuer die vier Plaetze */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.tab { padding: 8px 14px; border: 1px solid #e1e6eb; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f6f6f6; color: #1d2733; text-decoration: none; font-size: 14px; }
.tab.on { background: #00553c; color: #fff; border-color: #00553c; }
.tabs + .card { border-top-left-radius: 0; }

/* Mitgliedschaft */
h3 { color: #00553c; margin: 20px 0 6px; }
.vorteile { background: #f4f9f6; border: 1px solid #cfe5da; border-radius: 4px; padding: 4px 20px 12px; margin-bottom: 8px; }
.vorteile ul { margin: 0; padding-left: 20px; }
.vorteile li { margin: 6px 0; }
.steps { padding-left: 22px; }
.steps li { margin: 6px 0; }
a.button.secondary, button.button.secondary { background: #fff; color: #00553c; border: 1px solid #00553c; }
a.button.secondary:hover, button.button.secondary:hover { background: #eef6f1; }
button.button, a.button.small, button.button.small { display: inline-block; margin-top: 0; padding: 6px 12px; border-radius: 4px; background: #00553c; color: #fff; border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
button.button.secondary { background: #fff; color: #00553c; border: 1px solid #00553c; }
button.button.danger, a.button.danger { background: #b91c1c; color: #fff; border: 0; }
.link-small { background: none; border: 0; padding: 0; color: #5c6b7a; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.pilot { display: flex; gap: 14px; padding: 12px; margin: 10px 0; border: 1px solid #e1e6eb; border-left-width: 4px; border-radius: 4px; }
.pilot.st-eingegangen { border-left-color: #d97706; }
.pilot.st-freigegeben { border-left-color: #2563eb; }
.pilot.st-mitglied { border-left-color: #166534; }
.pilot.st-abgelehnt { border-left-color: #b91c1c; }
.pphoto { flex: 0 0 96px; }
.thumb-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; background: #f6f6f6; display: block; }
.nophoto.small { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; background: #f6f6f6; color: #8a97a5; font-size: 12px; border-radius: 4px; }
.pbody { flex: 1 1 auto; min-width: 0; }
.pactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.pactions form { margin: 0; }
.inline-reject { display: flex; gap: 6px; }
.inline-reject input { width: 200px; padding: 5px 8px; font-size: 14px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: #eef1f4; color: #1d2733; }
.badge.b-eingegangen { background: #fef3c7; color: #92400e; }
.badge.b-freigegeben { background: #dbeafe; color: #1e40af; }
.badge.b-mitglied { background: #dcfce7; color: #166534; }
.badge.b-abgelehnt { background: #fee2e2; color: #991b1b; }
.badge.b-warn { background: #fef3c7; color: #92400e; }
details { margin-top: 8px; }
.nbadge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #df2c19; color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }
.msg { border: 1px solid #e1e6eb; border-left: 4px solid #00553c; border-radius: 4px; padding: 10px 14px; margin: 10px 0; }
.msg.new { background: #f4f9f6; border-left-color: #df2c19; }
.msg.old { border-left-color: #b8c1cb; color: #5c6b7a; }
.msg p { margin: 8px 0; }
.codebox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.code { font: 700 17px/1 monospace; letter-spacing: 1px; padding: 6px 10px; background: #fff; border: 1px dashed #00553c; border-radius: 4px; }
.code.expired { border-color: #b8c1cb; color: #8a97a5; }
.listswitch { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; padding: 10px 12px; background: #f6f6f6; border-radius: 4px; }
.listswitch form { margin: 0; }

/* Oeffentliche Mitgliederliste */
.mgroup { margin: 28px 0 10px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mcard { border: 1px solid #e1e6eb; border-radius: 4px; overflow: hidden; background: #fff; }
.mphoto { display: block; width: 100%; height: 220px; object-fit: cover; background: #f6f6f6; }
.mdummy { display: flex; align-items: center; justify-content: center; }
.mbody { padding: 12px 14px 14px; }
.mname { font-size: 18px; color: #00553c; }
.mnick { color: #5c6b7a; }
.mclass { font-size: 13px; color: #5c6b7a; margin-top: 2px; }
.mach { font-size: 14px; margin: 8px 0 0; }
@media (max-width: 600px) {
  .mcards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mphoto { height: 140px; }
  .mbody { padding: 8px 10px 10px; }
  .mname { font-size: 16px; }
}
@media (max-width: 600px) {
  .pilot { flex-direction: column; }
  .inline-reject { flex-wrap: wrap; }
  .inline-reject input { width: 100%; }
}
