style.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. /* Reset and Base Styles */
  2. :root {
  3. --brand-primary: #2f3541;
  4. --brand-primary-dark: #242a33;
  5. --brand-danger: #cf2e2e;
  6. --brand-danger-dark: #b12727;
  7. --brand-accent: #cac300;
  8. --brand-dark: #1b1b1b;
  9. --brand-text: #f5f7fb;
  10. --brand-muted: #c7ccd6;
  11. --brand-surface: #2f3541;
  12. --brand-surface-alt: #3a4150;
  13. --brand-bg: #28292a;
  14. --brand-border: #3b4252;
  15. }
  16. * {
  17. margin: 0;
  18. padding: 0;
  19. box-sizing: border-box;
  20. }
  21. body {
  22. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  23. line-height: 1.6;
  24. color: var(--brand-text);
  25. background-color: var(--brand-bg);
  26. }
  27. a {
  28. color: var(--brand-accent);
  29. }
  30. a:hover {
  31. color: #e0d700;
  32. }
  33. .container {
  34. max-width: 1200px;
  35. margin: 0 auto;
  36. padding: 0 20px;
  37. }
  38. /* Header */
  39. .site-header {
  40. background-color: var(--brand-primary);
  41. color: white;
  42. padding: 0.9rem 0;
  43. box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  44. }
  45. .header-inner {
  46. display: flex;
  47. align-items: center;
  48. justify-content: space-between;
  49. gap: 2rem;
  50. }
  51. .brand {
  52. display: flex;
  53. align-items: center;
  54. gap: 1rem;
  55. color: white;
  56. text-decoration: none;
  57. }
  58. .brand-logo {
  59. height: 52px;
  60. width: auto;
  61. display: block;
  62. filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  63. }
  64. .brand-text {
  65. display: flex;
  66. flex-direction: column;
  67. line-height: 1.1;
  68. }
  69. .brand-title {
  70. font-size: 1.3rem;
  71. font-weight: 700;
  72. letter-spacing: 0.02em;
  73. }
  74. .brand-subtitle {
  75. font-size: 0.9rem;
  76. font-weight: 500;
  77. opacity: 0.9;
  78. }
  79. .site-nav {
  80. display: flex;
  81. align-items: center;
  82. gap: 1.5rem;
  83. }
  84. .site-nav a {
  85. color: white;
  86. text-decoration: none;
  87. font-weight: 600;
  88. letter-spacing: 0.02em;
  89. }
  90. .site-nav a:hover {
  91. color: var(--brand-accent);
  92. }
  93. /* Main Content */
  94. main {
  95. min-height: calc(100vh - 200px);
  96. padding: 2rem 0;
  97. }
  98. /* Buttons */
  99. .btn {
  100. display: inline-block;
  101. padding: 0.75rem 1.5rem;
  102. background-color: var(--brand-danger);
  103. color: white;
  104. text-decoration: none;
  105. border: none;
  106. border-radius: 4px;
  107. cursor: pointer;
  108. font-size: 1rem;
  109. font-weight: 500;
  110. transition: background-color 0.3s;
  111. }
  112. .btn:hover {
  113. background-color: var(--brand-danger-dark);
  114. }
  115. .btn-secondary {
  116. background-color: transparent;
  117. border: 1px solid var(--brand-border);
  118. color: var(--brand-text);
  119. }
  120. .btn-secondary:hover {
  121. background-color: var(--brand-surface-alt);
  122. }
  123. .btn-small {
  124. padding: 0.5rem 1rem;
  125. font-size: 0.9rem;
  126. }
  127. /* Product Grid */
  128. .products-grid {
  129. display: grid;
  130. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  131. gap: 2rem;
  132. margin-top: 2rem;
  133. }
  134. .product-card {
  135. background: var(--brand-surface);
  136. border-radius: 8px;
  137. overflow: hidden;
  138. box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  139. transition: transform 0.3s, box-shadow 0.3s;
  140. }
  141. .product-card:hover {
  142. transform: translateY(-5px);
  143. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  144. }
  145. .product-card img {
  146. width: 100%;
  147. height: 200px;
  148. object-fit: cover;
  149. background-color: var(--brand-border);
  150. }
  151. .product-card-content {
  152. padding: 1.5rem;
  153. }
  154. .product-card h3 {
  155. font-size: 1.2rem;
  156. margin-bottom: 0.5rem;
  157. color: var(--brand-accent);
  158. }
  159. .product-card .price {
  160. font-size: 1.5rem;
  161. font-weight: bold;
  162. color: var(--brand-text);
  163. margin: 0.5rem 0;
  164. }
  165. .product-card .stock {
  166. font-size: 0.9rem;
  167. color: var(--brand-muted);
  168. margin-bottom: 1rem;
  169. }
  170. .product-card .stock.in-stock {
  171. color: var(--brand-accent);
  172. }
  173. .product-card .stock.out-of-stock {
  174. color: var(--brand-danger);
  175. }
  176. /* Forms */
  177. .form-group {
  178. margin-bottom: 1.5rem;
  179. }
  180. .form-group label {
  181. display: block;
  182. margin-bottom: 0.5rem;
  183. font-weight: 500;
  184. }
  185. .form-group input,
  186. .form-group textarea,
  187. .form-group select {
  188. width: 100%;
  189. padding: 0.75rem;
  190. border: 1px solid var(--brand-border);
  191. border-radius: 4px;
  192. font-size: 1rem;
  193. font-family: inherit;
  194. background: var(--brand-surface-alt);
  195. color: var(--brand-text);
  196. }
  197. ::placeholder {
  198. color: var(--brand-muted);
  199. }
  200. .form-group input:focus,
  201. .form-group textarea:focus,
  202. .form-group select:focus {
  203. outline: none;
  204. border-color: var(--brand-accent);
  205. box-shadow: 0 0 0 3px rgba(202, 195, 0, 0.2);
  206. }
  207. /* Cart */
  208. .cart-item {
  209. background: var(--brand-surface);
  210. padding: 1.5rem;
  211. margin-bottom: 1rem;
  212. border-radius: 8px;
  213. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  214. display: flex;
  215. justify-content: space-between;
  216. align-items: center;
  217. }
  218. .cart-item-info {
  219. flex: 1;
  220. }
  221. .cart-item-actions {
  222. display: flex;
  223. align-items: center;
  224. gap: 1rem;
  225. }
  226. .quantity-input {
  227. width: 60px;
  228. padding: 0.5rem;
  229. text-align: center;
  230. }
  231. /* Tables */
  232. table {
  233. width: 100%;
  234. background: var(--brand-surface);
  235. border-collapse: collapse;
  236. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  237. border-radius: 8px;
  238. overflow: hidden;
  239. }
  240. table th {
  241. background-color: var(--brand-primary);
  242. color: white;
  243. padding: 1rem;
  244. text-align: left;
  245. font-weight: 600;
  246. }
  247. table td {
  248. padding: 1rem;
  249. border-top: 1px solid var(--brand-border);
  250. }
  251. table tr:hover {
  252. background-color: var(--brand-surface-alt);
  253. }
  254. /* Responsive table wrapper: full width, horizontal scroll when needed, cell wrapping */
  255. .table-responsive {
  256. width: 100%;
  257. overflow-x: auto;
  258. -webkit-overflow-scrolling: touch;
  259. margin-bottom: 1.5rem;
  260. }
  261. .table-responsive table {
  262. width: 100%;
  263. }
  264. .table-responsive th,
  265. .table-responsive td {
  266. word-break: break-word;
  267. overflow-wrap: break-word;
  268. white-space: normal;
  269. }
  270. /* Admin: use more horizontal space so tables fit */
  271. body.admin-page .container {
  272. max-width: none;
  273. padding-left: 1rem;
  274. padding-right: 1rem;
  275. }
  276. /* Alerts */
  277. .alert {
  278. padding: 1rem;
  279. border-radius: 4px;
  280. margin-bottom: 1.5rem;
  281. background: var(--brand-surface);
  282. color: var(--brand-text);
  283. border: 1px solid var(--brand-border);
  284. }
  285. .alert-success {
  286. border-color: var(--brand-accent);
  287. }
  288. .alert-error {
  289. border-color: var(--brand-danger);
  290. }
  291. .alert-info {
  292. border-color: #ffffff;
  293. }
  294. .alert-warning {
  295. border-color: var(--brand-accent);
  296. }
  297. /* Main page disclaimer */
  298. .disclaimer-box {
  299. margin: 1rem 0 1.5rem;
  300. padding: 1rem;
  301. border: 1px solid var(--brand-border);
  302. border-left: 4px solid var(--brand-accent);
  303. background: var(--brand-surface);
  304. border-radius: 6px;
  305. }
  306. .disclaimer-box p + p {
  307. margin-top: 0.4rem;
  308. }
  309. /* Footer */
  310. footer {
  311. background-color: var(--brand-primary);
  312. color: white;
  313. text-align: center;
  314. padding: 2rem 0;
  315. margin-top: 3rem;
  316. }
  317. .footer-links {
  318. margin-top: 0.8rem;
  319. display: flex;
  320. flex-wrap: wrap;
  321. justify-content: center;
  322. gap: 0.5rem 1rem;
  323. }
  324. .footer-links a {
  325. color: #ffffff;
  326. text-decoration: underline;
  327. }
  328. .footer-links a:hover {
  329. color: var(--brand-accent);
  330. }
  331. /* Reservation Code */
  332. .order-number {
  333. background: var(--brand-surface-alt);
  334. border: 2px solid var(--brand-accent);
  335. padding: 2rem;
  336. border-radius: 8px;
  337. text-align: center;
  338. margin: 2rem 0;
  339. }
  340. .order-number h2 {
  341. font-size: 2rem;
  342. color: var(--brand-accent);
  343. letter-spacing: 0.2rem;
  344. font-family: 'Courier New', monospace;
  345. }
  346. /* Admin Styles */
  347. .admin-header {
  348. display: flex;
  349. justify-content: space-between;
  350. align-items: center;
  351. margin-bottom: 2rem;
  352. }
  353. .admin-dashboard-actions {
  354. display: flex;
  355. align-items: center;
  356. flex-wrap: wrap;
  357. gap: 0.5rem;
  358. }
  359. .admin-actions-dropdown {
  360. position: relative;
  361. }
  362. .admin-actions-dropdown summary {
  363. list-style: none;
  364. }
  365. .admin-actions-dropdown summary::-webkit-details-marker {
  366. display: none;
  367. }
  368. .admin-actions-dropdown .btn {
  369. display: inline-block;
  370. }
  371. .admin-actions-dropdown[open] > .btn {
  372. background-color: var(--brand-surface-alt);
  373. }
  374. .admin-actions-menu {
  375. position: absolute;
  376. right: 0;
  377. top: calc(100% + 0.35rem);
  378. min-width: 220px;
  379. background: var(--brand-surface);
  380. border: 1px solid var(--brand-border);
  381. border-radius: 6px;
  382. box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  383. z-index: 30;
  384. padding: 0.35rem;
  385. }
  386. .admin-actions-menu a {
  387. display: block;
  388. text-decoration: none;
  389. color: var(--brand-text);
  390. padding: 0.55rem 0.7rem;
  391. border-radius: 4px;
  392. }
  393. .admin-actions-menu a:hover {
  394. background: var(--brand-surface-alt);
  395. color: var(--brand-accent);
  396. }
  397. .faq-content h1,
  398. .faq-content h2,
  399. .faq-content h3 {
  400. margin: 1rem 0 0.6rem;
  401. }
  402. .faq-content h1:first-child,
  403. .faq-content h2:first-child,
  404. .faq-content h3:first-child {
  405. margin-top: 0;
  406. }
  407. .faq-content p + p {
  408. margin-top: 0.8rem;
  409. }
  410. .faq-content ul,
  411. .faq-content ol {
  412. margin: 0.7rem 0 0.9rem 1.5rem;
  413. }
  414. .faq-content li + li {
  415. margin-top: 0.35rem;
  416. }
  417. .admin-stats {
  418. display: grid;
  419. grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  420. gap: 1.5rem;
  421. margin-bottom: 2rem;
  422. }
  423. .stat-card {
  424. background: var(--brand-surface);
  425. padding: 1.5rem;
  426. border-radius: 8px;
  427. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  428. }
  429. .stat-card h3 {
  430. font-size: 0.9rem;
  431. color: var(--brand-muted);
  432. margin-bottom: 0.5rem;
  433. }
  434. .stat-card .stat-value {
  435. font-size: 2rem;
  436. font-weight: bold;
  437. color: var(--brand-accent);
  438. }
  439. .panel {
  440. background: var(--brand-surface);
  441. border: 1px solid var(--brand-border);
  442. padding: 1.5rem;
  443. border-radius: 8px;
  444. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  445. margin-bottom: 2rem;
  446. }
  447. .status {
  448. display: inline-block;
  449. padding: 0.2rem 0.6rem;
  450. border-radius: 999px;
  451. font-size: 0.85rem;
  452. font-weight: 600;
  453. letter-spacing: 0.02em;
  454. border: 1px solid transparent;
  455. }
  456. .status-open {
  457. color: var(--brand-accent);
  458. border-color: var(--brand-accent);
  459. }
  460. .status-notified,
  461. .status-picked {
  462. color: #ffffff;
  463. border-color: #ffffff;
  464. }
  465. .status-expired {
  466. color: var(--brand-danger);
  467. border-color: var(--brand-danger);
  468. }
  469. .status-hidden {
  470. color: #9ca3af;
  471. border-color: #6b7280;
  472. }
  473. .order-highlight {
  474. font-size: 1.5rem;
  475. color: var(--brand-accent);
  476. letter-spacing: 0.2rem;
  477. font-family: 'Courier New', monospace;
  478. }
  479. .modal {
  480. display: none;
  481. position: fixed;
  482. top: 0;
  483. left: 0;
  484. width: 100%;
  485. height: 100%;
  486. background: rgba(0,0,0,0.6);
  487. z-index: 1000;
  488. align-items: center;
  489. justify-content: center;
  490. }
  491. .modal-content {
  492. background: var(--brand-surface);
  493. color: var(--brand-text);
  494. padding: 2rem;
  495. border-radius: 8px;
  496. max-width: 1000px;
  497. max-height: 95vh;
  498. overflow-y: auto;
  499. position: relative;
  500. border: 1px solid var(--brand-border);
  501. }
  502. .modal-close {
  503. position: absolute;
  504. top: 1rem;
  505. right: 1rem;
  506. }
  507. .product-placeholder {
  508. width: 100%;
  509. height: 400px;
  510. background-color: var(--brand-surface-alt);
  511. border-radius: 8px;
  512. display: flex;
  513. align-items: center;
  514. justify-content: center;
  515. color: var(--brand-text);
  516. }
  517. .table-compact th,
  518. .table-compact td {
  519. padding: 0.6rem;
  520. font-size: 0.9rem;
  521. }
  522. /* Product Detail Grid */
  523. .product-detail-grid {
  524. display: grid;
  525. grid-template-columns: 1fr 1fr;
  526. gap: 2rem;
  527. margin-top: 2rem;
  528. }
  529. /* Checkout two-column layout (responsive via media query) */
  530. .checkout-grid {
  531. display: grid;
  532. grid-template-columns: 1fr 1fr;
  533. gap: 2rem;
  534. margin-top: 2rem;
  535. }
  536. /* Cart total / actions block */
  537. .cart-actions {
  538. text-align: right;
  539. margin: 2rem 0;
  540. }
  541. .cart-actions .cart-total {
  542. font-size: 1.5rem;
  543. font-weight: bold;
  544. margin-bottom: 1rem;
  545. }
  546. .cart-actions .cart-buttons {
  547. display: flex;
  548. flex-wrap: wrap;
  549. gap: 0.5rem;
  550. align-items: center;
  551. }
  552. .cart-actions .cart-buttons .btn {
  553. margin-left: 0;
  554. }
  555. /* Responsive */
  556. @media (max-width: 768px) {
  557. .header-inner {
  558. flex-direction: column;
  559. align-items: flex-start;
  560. }
  561. .site-nav {
  562. flex-wrap: wrap;
  563. gap: 1rem;
  564. }
  565. .footer-links {
  566. flex-direction: column;
  567. align-items: center;
  568. }
  569. .brand-logo {
  570. height: 46px;
  571. }
  572. .products-grid {
  573. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  574. gap: 1rem;
  575. }
  576. .product-detail-grid {
  577. grid-template-columns: 1fr;
  578. gap: 1.5rem;
  579. }
  580. .cart-item {
  581. flex-direction: column;
  582. align-items: flex-start;
  583. }
  584. .cart-item-actions {
  585. width: 100%;
  586. justify-content: space-between;
  587. margin-top: 1rem;
  588. }
  589. .cart-actions {
  590. text-align: left;
  591. }
  592. .cart-actions .cart-buttons {
  593. flex-direction: column;
  594. align-items: stretch;
  595. }
  596. .cart-actions .cart-buttons .btn {
  597. margin-left: 0;
  598. }
  599. .checkout-grid {
  600. grid-template-columns: 1fr;
  601. gap: 1.5rem;
  602. }
  603. .modal-content {
  604. margin: 1rem;
  605. max-height: calc(100vh - 2rem);
  606. }
  607. .admin-header {
  608. flex-direction: column;
  609. align-items: stretch;
  610. gap: 1rem;
  611. }
  612. .admin-header > div {
  613. display: flex;
  614. flex-wrap: wrap;
  615. gap: 0.5rem;
  616. }
  617. .admin-header .btn {
  618. flex: 1 1 auto;
  619. min-width: 140px;
  620. }
  621. .admin-dashboard-actions {
  622. flex-direction: column;
  623. align-items: stretch;
  624. }
  625. .admin-dashboard-actions > .btn,
  626. .admin-dashboard-actions > .admin-actions-dropdown {
  627. width: 100%;
  628. }
  629. .admin-actions-dropdown .btn {
  630. width: 100%;
  631. text-align: center;
  632. }
  633. .admin-actions-menu {
  634. position: static;
  635. min-width: 0;
  636. margin-top: 0.45rem;
  637. }
  638. table {
  639. font-size: 0.9rem;
  640. }
  641. table th,
  642. table td {
  643. padding: 0.5rem;
  644. }
  645. .admin-stats {
  646. grid-template-columns: 1fr;
  647. }
  648. /* Admin tables: use full width, allow buttons to wrap */
  649. body.admin-page .table-responsive {
  650. margin-left: -1rem;
  651. margin-right: -1rem;
  652. padding-left: 1rem;
  653. padding-right: 1rem;
  654. }
  655. .table-responsive .btn {
  656. white-space: normal;
  657. }
  658. /* Admin tables: stack rows into blocks on narrow screens */
  659. body.admin-page table.responsive-table {
  660. border: 0;
  661. box-shadow: none;
  662. background: transparent;
  663. }
  664. body.admin-page table.responsive-table thead {
  665. display: none;
  666. }
  667. body.admin-page table.responsive-table tbody {
  668. display: block;
  669. }
  670. body.admin-page table.responsive-table tr {
  671. display: block;
  672. background: var(--brand-surface);
  673. border: 1px solid var(--brand-border);
  674. border-radius: 8px;
  675. margin-bottom: 0.8rem;
  676. box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  677. }
  678. body.admin-page table.responsive-table td {
  679. display: flex;
  680. justify-content: space-between;
  681. gap: 1rem;
  682. width: 100%;
  683. border-top: 1px solid var(--brand-border);
  684. border-bottom: 0;
  685. padding: 0.65rem 0.85rem;
  686. text-align: right;
  687. }
  688. body.admin-page table.responsive-table td:first-child {
  689. border-top: 0;
  690. }
  691. body.admin-page table.responsive-table td::before {
  692. content: attr(data-label);
  693. font-weight: 600;
  694. color: var(--brand-muted);
  695. text-align: left;
  696. }
  697. body.admin-page table.responsive-table td[data-label="Aktionen"] {
  698. display: block;
  699. text-align: left;
  700. }
  701. body.admin-page table.responsive-table td[data-label="Aktionen"]::before {
  702. display: block;
  703. margin-bottom: 0.4rem;
  704. }
  705. }
  706. @media (max-width: 480px) {
  707. .container {
  708. padding: 0 12px;
  709. }
  710. main {
  711. padding: 1rem 0;
  712. }
  713. .brand-title {
  714. font-size: 1.1rem;
  715. }
  716. .brand-subtitle {
  717. font-size: 0.8rem;
  718. }
  719. .products-grid {
  720. grid-template-columns: 1fr;
  721. gap: 1rem;
  722. }
  723. /* Very narrow: admin tables scroll so columns stay readable */
  724. .table-responsive table:not(.responsive-table) {
  725. min-width: 520px;
  726. }
  727. }
  728. /* Utility Classes */
  729. .text-center {
  730. text-align: center;
  731. }
  732. .mt-1 { margin-top: 0.5rem; }
  733. .mt-2 { margin-top: 1rem; }
  734. .mt-3 { margin-top: 1.5rem; }
  735. .mb-1 { margin-bottom: 0.5rem; }
  736. .mb-2 { margin-bottom: 1rem; }
  737. .mb-3 { margin-bottom: 1.5rem; }