/*
Theme Name: Apple‑Like Theme
Theme URI:  https://example.com
Author:      Ihr Name
Description: Minimalistisches WordPress‑Theme im Stil von Apple für den Food Additives Marketplace.
Version:     1.0.0
License:     GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apple-like-theme
Tags: minimal, responsive, corporate
*/

/* Schrift und Grundfarben */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary-color: #0071e3;
  --background-color: #ffffff;
  --text-color: #1d1d1f;
  --secondary-text: #6e6e73;
  --hero-gradient-start: #e9f2fa;
  --hero-gradient-end: #f5f7fa;
  --font-family-base: 'Inter', sans-serif;
  --max-width: 1200px;
}

/* Grund-Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  flex: 1 0 auto;
}

/* Navigationsbereich */
header.site-header {
  background-color: #f5f5f7;
  border-bottom: 1px solid #dcdcdc;
  padding: 0;
  position: relative;
  z-index: 1000;
}

header.site-header nav {
  display: flex;
  align-items: center;
  min-height: 50px;
}

.apple-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.apple-menu li a {
  color: #1d1d1f;
  text-decoration: none;
  padding: 0.75rem 0;
}

.apple-menu li a:hover {
  color: var(--primary-color);
}

/* Bereich „Angemeldet als …“ mit Icons */
.logged-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.85rem;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.logged-user .user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: #333;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.logged-user .user-icon:hover {
  background-color: #e4e4e4;
  color: #000;
}

.logged-user .dashicons {
  font-size: 1.2rem;
  line-height: 1;
}

/* Hero-Bereich (optional) */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  background: linear-gradient(to bottom right, var(--hero-gradient-start), var(--hero-gradient-end));
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--secondary-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Hauptcontent */
main {
  padding: 3rem 0;
}

/* Footer */
footer.site-footer {
  text-align: center;
  padding: 0.1rem 0;
  background-color: #f2f2f2;
  color: var(--secondary-text);
  font-size: 0.875rem;
  margin-top: auto;
}

/* Formulare (z.B. Login/Registrierung) */
.auth-wrapper {
  max-width: 500px;
  margin: 3rem auto;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-tabs {
  display: flex;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: #f7f7f7;
  border-right: 1px solid #e5e5e5;
  user-select: none;
}

.auth-tab:last-child { border-right: none; }

.auth-tab.active { background: #fff; }

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-form label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 0.25rem;
}

.auth-form button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.auth-form button:hover { background: #222; }

/* Grid-Layouts für Karten (Beispiel) */
.cd-company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cd-company-card {
  background: #f5f5f7;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cd-company-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.cd-company-card p { margin: 0.25rem 0; color: #555; }

.cd-additives-text {
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 0.5rem;
  color: #333;
  line-height: 1.3;
}

.cd-additives-text strong {
  font-style: normal;
}

	
/* Fix modal size and prevent user resizing */
.cd-modal-content {
  width: 90%;
  max-width: 800px;
  height: 90vh;
  max-height: 90vh;
  resize: none !important;
  overflow: hidden;
  padding: 1rem;
}

/* PDF iframe fills modal, scrollable inside */
.cd-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: auto;
}
	
	
	/* 🧠 Fix: Kein Zoom beim Fokussieren von Input-Feldern auf Mobilgeräten */
input, 
textarea, 
select {
  font-size: 16px !important;
}


